diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-15 00:00:28 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-15 00:00:28 +0000 |
commit | e2e3d5ce0c8dc713f7c6b7f3facbfe93d9e9739f (patch) | |
tree | 41f10725c99495902bf29abf3e1a68a6da6f5ec9 /ssl/ssl_lib.c | |
parent | 8aa5b77c879539ad3cd2e4a6fc8eee0faae04cfb (diff) | |
download | openssl-e2e3d5ce0c8dc713f7c6b7f3facbfe93d9e9739f.tar.gz |
A comment.
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 09c837cc97..7b9228fdfc 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -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); |