“文件存在”错误是什么意思?

时间:2013-03-22 22:59:55

标签: openssl dtls

调用DTLSv1_listen(),返回0.

然后使用SSL_get_error()来检索错误。

SSL_error = SSL_ERROR_SYSCALL
errno = 17: "File exists"

这是什么意思?存在什么文件?

非常感谢你的帮助。

1 个答案:

答案 0 :(得分:0)

如果您提供更多上下文,那就太好了。但是短搜索导致了这段代码和评论: http://fossies.org/unix/misc/postgresql-9.2.3.tar.gz/dox/fe-secure_8c_source.html (第1085行)

1982          /*
1083          * Cert file exists, so load it.  Since OpenSSL doesn't provide the
1084          * equivalent of "SSL_use_certificate_chain_file", we actually have to
1085          * load the file twice.  The first call loads any extra certs after
1086          * the first one into chain-cert storage associated with the
1087          * SSL_context.  The second call loads the first cert (only) into the
1088          * SSL object, where it will be correctly paired with the private key
1089          * we load below.  We do it this way so that each connection
1090          * understands which subject cert to present, in case different
1091          * sslcert settings are used for different connections in the same
1092          * process.
1093          */