A comment.
[openssl.git] / ssl / ssl_lib.c
index 666dba54cf88e91432ab2695bcf0541dcbbfe016..7b9228fdfc27becf6b694da932508e1ae7bb5d4b 100644 (file)
@@ -657,6 +657,12 @@ int SSL_write(SSL *s,const char *buf,int num)
 
 int SSL_shutdown(SSL *s)
        {
+       /* Note that this function behaves different from what one might
+        * expect.  Return values are 0 for no success (yet),
+        * 1 for success; but calling it once is usually not enough,
+        * even if blocking I/O is used (see ssl3_shutdown).
+        */
+
        if (s->handshake_func == 0)
                {
                SSLerr(SSL_F_SSL_SHUTDOWN, SSL_R_UNINITIALIZED);
@@ -1115,7 +1121,7 @@ void SSL_CTX_free(SSL_CTX *a)
        Free((char *)a);
        }
 
-void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx,int (*cb)())
+void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb)
        {
        ctx->default_passwd_callback=cb;
        }