diff options
| author | jsing <> | 2017-01-26 12:56:37 +0000 |
|---|---|---|
| committer | jsing <> | 2017-01-26 12:56:37 +0000 |
| commit | b67df6aca845e645c0b047549941d37e2e1cdaab (patch) | |
| tree | b6f097154c11d0ef88cefdbed8094e57584a2602 /src/lib/libtls/tls_internal.h | |
| parent | b9490e0dcad175f62fde5ac9eb2403dac2b274c6 (diff) | |
| download | openbsd-b67df6aca845e645c0b047549941d37e2e1cdaab.tar.gz openbsd-b67df6aca845e645c0b047549941d37e2e1cdaab.tar.bz2 openbsd-b67df6aca845e645c0b047549941d37e2e1cdaab.zip | |
Use a flag to track when we need to call SSL_shutdown(). This avoids an
issue where by calling tls_close() on a TLS context that has not attempted
a handshake, results in an unexpected failure.
Reported by Vinay Sajip.
ok beck@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
| -rw-r--r-- | src/lib/libtls/tls_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h index 3650ca9462..37737c3499 100644 --- a/src/lib/libtls/tls_internal.h +++ b/src/lib/libtls/tls_internal.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls_internal.h,v 1.51 2017/01/24 01:48:05 claudio Exp $ */ | 1 | /* $OpenBSD: tls_internal.h,v 1.52 2017/01/26 12:56:37 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> | 3 | * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> |
| 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| @@ -118,6 +118,7 @@ struct tls_conninfo { | |||
| 118 | 118 | ||
| 119 | #define TLS_EOF_NO_CLOSE_NOTIFY (1 << 0) | 119 | #define TLS_EOF_NO_CLOSE_NOTIFY (1 << 0) |
| 120 | #define TLS_HANDSHAKE_COMPLETE (1 << 1) | 120 | #define TLS_HANDSHAKE_COMPLETE (1 << 1) |
| 121 | #define TLS_SSL_NEEDS_SHUTDOWN (1 << 2) | ||
| 121 | 122 | ||
| 122 | struct tls_ocsp_result { | 123 | struct tls_ocsp_result { |
| 123 | const char *result_msg; | 124 | const char *result_msg; |
