Stunnel和hpux:为什么会出现此错误?

埃尔巴纳

我用这些选项在hpux上编译了一个tunnel版本

./configure \
  --prefix=/opt/stunnel \
  --sbindir=/opt/stunnel/sbin \
  --mandir=/opt/stunnel/man \
  --docdir=/opt/stunnel/doc \
  --localstatedir=/var/opt/stunnel \
  --with-ssl=/usr/local \
  --disable-libwrap

构建成功,但无法启动隧道

/opt/stunnel/bin/stunnel /etc/opt/stunnel/stunnel.conf
[ ] Clients allowed=1000
[.] stunnel 5.50 on ia64-hp-hpux11.31 platform
[.] Compiled with OpenSSL 1.0.2q  20 Nov 2018
[.] Running  with OpenSSL 1.0.2k  26 Jan 2017
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno())
[!] Invalid configuration file name "/etc/opt/stunnel/stunnel.conf"
[!] realpath: Invalid argument (22)
[ ] Deallocating section defaults

配置文件正确,因为在相同版本的linux和solaris上可以正常工作。我看到这两行:

[.] Compiled with OpenSSL 1.0.2q  20 Nov 2018
[.] Running  with OpenSSL 1.0.2k  26 Jan 2017

我有两个版本的openssl,当然不可能同时删除两个或一次,因为会破坏很多部门。我也试过换线

  --with-ssl=/usr/local \

  --with-ssl=/opt/openssl\

和..不起作用。同样的错误

/opt/stunnel/bin/stunnel /etc/opt/stunnel/stunnel.conf
[ ] Clients allowed=1000
[.] stunnel 5.50 on ia64-hp-hpux11.31 platform
[.] Compiled/running with OpenSSL 1.0.2k  26 Jan 2017
[.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
[ ] errno: (*__errno())
[!] Invalid configuration file name "/etc/opt/stunnel/stunnel.conf"
[!] realpath: Invalid argument (22)
[ ] Deallocating section defaults

这是文件conf。

#server
chroot = /var/opt/stunnel
setuid = stunnel
setgid = stunnel
pid = /stunnel.pid
debug = 1
foreground = no
cert = /etc/ssl/certs/stunnel.pem
key = /etc/ssl/private/stunnel.pem
options = NO_SSLv2
options = NO_SSLv3
sslVersion = TLSv1.2
[TELNET]
accept=0.0.0.0:5853
connect=localhost:23
电信

根据HP-UX 11.31手册页,来自调用Invalid argument错误(EINVALrealpath(3X)表示指向要解析的路径名或指向已解析名称的缓冲区的指针为NULL。

这可能是检查配置文件名有效性的代码部分中的某种指针处理错误。这也可能会解释前面的Invalid configuration file name错误消息。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

OCaml:为什么会出现此错误?

为什么会出现此错误?

为什么Glimpse会出现此错误?

为什么会出现此错误 (NoneType)?

为什么会出现此输入错误?

为什么会出现此分段错误?

为什么在执行此查询时会出现此错误?

为什么会出现此错误:ng:areq错误参数

为什么会出现此错误(swift 2.2,处理func和命名参数)?

字符完全加载后,为什么会出现此错误?

为什么会出现此错误“TypeError: undefined is not an object”

为什么会出现此错误?管道不是函数

为什么会出现此错误?(QuantConnect算法)

为什么会出现此“ PulseAudio连接失败”错误?

/ search /处的MultiValueDictKeyError,为什么会出现此错误?

为什么会出现此递归stackoverflow错误?

Shellshock:为什么在测试漏洞时会出现此错误

结构问题,为什么会出现此错误?

为什么 Python 中会出现此 Traceback 错误?

为什么会出现此重复的列错误?

为什么使用Lambda会出现此错误?

为什么会出现此“无法到达的语句”错误?

为什么在jsp中使用if语句会出现此错误?

为什么我的终端上会出现此错误?

为什么在 IntelliJ 中使用 JavaMail 会出现此错误?

为什么此代码段会出现分段错误?

Python 网页抓取 - 为什么会出现此错误?

为什么在调用 TitleScreen 实例时会出现此错误?

未使用(和引用)的程序集上的程序集引用错误,为什么会出现此错误?