diff options
author | tb <> | 2020-08-31 14:34:01 +0000 |
---|---|---|
committer | tb <> | 2020-08-31 14:34:01 +0000 |
commit | f9f2c6158d37416abbdd6c8cdf77912181bbbefc (patch) | |
tree | be655ef886366f2677afd7c41a476decebc22620 /src/lib/libssl/ssl_locl.h | |
parent | f551307b25934acd84205155d6286b2d937e2479 (diff) | |
download | openbsd-f9f2c6158d37416abbdd6c8cdf77912181bbbefc.tar.gz openbsd-f9f2c6158d37416abbdd6c8cdf77912181bbbefc.tar.bz2 openbsd-f9f2c6158d37416abbdd6c8cdf77912181bbbefc.zip |
Return code tweaks for session ticket handlers
In tls1_process_ticket() and tls_decrypt_ticket() use #defines with
descriptive names instead of hardcoding -1 1 2 3 4 and occasionally
explaining the magic numbers with comments.
ok beck inoguchi
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 036c1dacb2..18ff5b0c30 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.285 2020/08/31 14:04:51 tb Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.286 2020/08/31 14:34:01 tb 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 | * |
@@ -1397,6 +1397,13 @@ int ssl_check_clienthello_tlsext_early(SSL *s); | |||
1397 | int ssl_check_clienthello_tlsext_late(SSL *s); | 1397 | int ssl_check_clienthello_tlsext_late(SSL *s); |
1398 | int ssl_check_serverhello_tlsext(SSL *s); | 1398 | int ssl_check_serverhello_tlsext(SSL *s); |
1399 | 1399 | ||
1400 | #define TLS1_TICKET_FATAL_ERROR -1 | ||
1401 | #define TLS1_TICKET_NONE 0 | ||
1402 | #define TLS1_TICKET_EMPTY 1 | ||
1403 | #define TLS1_TICKET_NOT_DECRYPTED 2 | ||
1404 | #define TLS1_TICKET_DECRYPTED 3 | ||
1405 | #define TLS1_TICKET_DECRYPTED_RENEW 4 | ||
1406 | |||
1400 | int tls1_process_ticket(SSL *s, CBS *session_id, CBS *ext_block, | 1407 | int tls1_process_ticket(SSL *s, CBS *session_id, CBS *ext_block, |
1401 | int *alert, SSL_SESSION **ret); | 1408 | int *alert, SSL_SESSION **ret); |
1402 | 1409 | ||