summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_locl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-08-20 12:35:20 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-08-20 12:35:20 +0000
commit956006b741f9e5dbeaf98356317e51ef7110746b (patch)
treecd6e28704ceeccedcd0768ea7a3d5677ff88d7e4 /ssl/ssl_locl.h
parent167066fed4700d68b2776cbece464658fb30ac92 (diff)
Use SHA256 for ticket HMAC if possible.
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r--ssl/ssl_locl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
index e6990dc2a1..5bed3974ce 100644
--- a/ssl/ssl_locl.h
+++ b/ssl/ssl_locl.h
@@ -987,6 +987,11 @@ int ssl_prepare_clienthello_tlsext(SSL *s);
int ssl_prepare_serverhello_tlsext(SSL *s);
int ssl_check_clienthello_tlsext(SSL *s);
int ssl_check_serverhello_tlsext(SSL *s);
+#ifdef OPENSSL_NO_SHA256
+#define tlsext_tick_md EVP_sha1
+#else
+#define tlsext_tick_md EVP_sha256
+#endif
int tls1_process_ticket(SSL *s, unsigned char *session_id, int len,
const unsigned char *limit, SSL_SESSION **ret);
#endif