diff options
author | jsing <> | 2017-07-24 17:10:31 +0000 |
---|---|---|
committer | jsing <> | 2017-07-24 17:10:31 +0000 |
commit | 367191ae741e8a7c4ce333bdaa5ef7aaa43e3d3b (patch) | |
tree | 8569a0a64e02d438a436db68dfa476dc61e0f26f /src/lib/libssl/ssl_locl.h | |
parent | d6011d52b96722a292a3849d4f6c034339a53006 (diff) | |
download | openbsd-367191ae741e8a7c4ce333bdaa5ef7aaa43e3d3b.tar.gz openbsd-367191ae741e8a7c4ce333bdaa5ef7aaa43e3d3b.tar.bz2 openbsd-367191ae741e8a7c4ce333bdaa5ef7aaa43e3d3b.zip |
Rewrite the TLS Renegotiation Indication extension handling using CBB/CBS
and the new extension framework.
Feedback from doug@
ok inoguchi@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 8f1721ce5a..0d48920471 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.181 2017/05/07 04:22:24 beck Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.182 2017/07/24 17:10:31 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 | * |
@@ -881,6 +881,9 @@ typedef struct ssl3_state_internal_st { | |||
881 | unsigned char previous_server_finished_len; | 881 | unsigned char previous_server_finished_len; |
882 | int send_connection_binding; /* TODOEKR */ | 882 | int send_connection_binding; /* TODOEKR */ |
883 | 883 | ||
884 | /* Set if we saw a Renegotiation Indication extension from our peer. */ | ||
885 | int renegotiate_seen; | ||
886 | |||
884 | /* Set if we saw the Next Protocol Negotiation extension from our peer. | 887 | /* Set if we saw the Next Protocol Negotiation extension from our peer. |
885 | */ | 888 | */ |
886 | int next_proto_neg_seen; | 889 | int next_proto_neg_seen; |
@@ -1344,14 +1347,6 @@ int tls12_get_sigid(const EVP_PKEY *pk); | |||
1344 | const EVP_MD *tls12_get_hash(unsigned char hash_alg); | 1347 | const EVP_MD *tls12_get_hash(unsigned char hash_alg); |
1345 | 1348 | ||
1346 | void ssl_clear_hash_ctx(EVP_MD_CTX **hash); | 1349 | void ssl_clear_hash_ctx(EVP_MD_CTX **hash); |
1347 | int ssl_add_serverhello_renegotiate_ext(SSL *s, unsigned char *p, | ||
1348 | int *len, int maxlen); | ||
1349 | int ssl_parse_serverhello_renegotiate_ext(SSL *s, const unsigned char *d, | ||
1350 | int len, int *al); | ||
1351 | int ssl_add_clienthello_renegotiate_ext(SSL *s, unsigned char *p, | ||
1352 | int *len, int maxlen); | ||
1353 | int ssl_parse_clienthello_renegotiate_ext(SSL *s, const unsigned char *d, | ||
1354 | int len, int *al); | ||
1355 | long ssl_get_algorithm2(SSL *s); | 1350 | long ssl_get_algorithm2(SSL *s); |
1356 | int tls1_process_sigalgs(SSL *s, const unsigned char *data, int dsize); | 1351 | int tls1_process_sigalgs(SSL *s, const unsigned char *data, int dsize); |
1357 | int tls12_get_req_sig_algs(SSL *s, unsigned char *p); | 1352 | int tls12_get_req_sig_algs(SSL *s, unsigned char *p); |