diff options
author | jsing <> | 2014-07-12 19:45:53 +0000 |
---|---|---|
committer | jsing <> | 2014-07-12 19:45:53 +0000 |
commit | 7e58d56f7a655feae6127c5fb15e4042012d02f5 (patch) | |
tree | 9a0b39938bd33545c973591ba4438760ac1fb329 /src/lib/libssl/ssl_locl.h | |
parent | 975f72772307c423ba03a669c53eb1aea6f39fc1 (diff) | |
download | openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.tar.gz openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.tar.bz2 openbsd-7e58d56f7a655feae6127c5fb15e4042012d02f5.zip |
Provide ssl_version_string() function, which uses one of those modern C
constructs (a switch statement) and returns the appropriate string defined
by SSL_TXT_* for the given version, including support for DTLSv1 and
DTLSv1-bad. Use this function in SSL_get_version() and SSL_SESSION_print().
ok beck@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 0d96ee5fe8..22ba8d926e 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.60 2014/07/12 13:11:53 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.61 2014/07/12 19:45:53 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -543,6 +543,7 @@ extern SSL3_ENC_METHOD ssl3_undef_enc_method; | |||
543 | extern SSL_CIPHER ssl3_ciphers[]; | 543 | extern SSL_CIPHER ssl3_ciphers[]; |
544 | 544 | ||
545 | SSL_METHOD *ssl_bad_method(int ver); | 545 | SSL_METHOD *ssl_bad_method(int ver); |
546 | const char *ssl_version_string(int ver); | ||
546 | 547 | ||
547 | extern SSL3_ENC_METHOD TLSv1_enc_data; | 548 | extern SSL3_ENC_METHOD TLSv1_enc_data; |
548 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; | 549 | extern SSL3_ENC_METHOD TLSv1_1_enc_data; |