diff options
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 10fa9b6c17..6ffc2e053c 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.353 2021/06/30 18:04:06 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.354 2021/07/01 17:53:39 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 | * |
@@ -319,19 +319,19 @@ __BEGIN_HIDDEN_DECLS | |||
319 | 319 | ||
320 | /* See if we use signature algorithms extension. */ | 320 | /* See if we use signature algorithms extension. */ |
321 | #define SSL_USE_SIGALGS(s) \ | 321 | #define SSL_USE_SIGALGS(s) \ |
322 | (s->method->internal->enc_flags & SSL_ENC_FLAG_SIGALGS) | 322 | (s->method->enc_flags & SSL_ENC_FLAG_SIGALGS) |
323 | 323 | ||
324 | /* See if we use SHA256 default PRF. */ | 324 | /* See if we use SHA256 default PRF. */ |
325 | #define SSL_USE_SHA256_PRF(s) \ | 325 | #define SSL_USE_SHA256_PRF(s) \ |
326 | (s->method->internal->enc_flags & SSL_ENC_FLAG_SHA256_PRF) | 326 | (s->method->enc_flags & SSL_ENC_FLAG_SHA256_PRF) |
327 | 327 | ||
328 | /* Allow TLS 1.2 ciphersuites: applies to DTLS 1.2 as well as TLS 1.2. */ | 328 | /* Allow TLS 1.2 ciphersuites: applies to DTLS 1.2 as well as TLS 1.2. */ |
329 | #define SSL_USE_TLS1_2_CIPHERS(s) \ | 329 | #define SSL_USE_TLS1_2_CIPHERS(s) \ |
330 | (s->method->internal->enc_flags & SSL_ENC_FLAG_TLS1_2_CIPHERS) | 330 | (s->method->enc_flags & SSL_ENC_FLAG_TLS1_2_CIPHERS) |
331 | 331 | ||
332 | /* Allow TLS 1.3 ciphersuites only. */ | 332 | /* Allow TLS 1.3 ciphersuites only. */ |
333 | #define SSL_USE_TLS1_3_CIPHERS(s) \ | 333 | #define SSL_USE_TLS1_3_CIPHERS(s) \ |
334 | (s->method->internal->enc_flags & SSL_ENC_FLAG_TLS1_3_CIPHERS) | 334 | (s->method->enc_flags & SSL_ENC_FLAG_TLS1_3_CIPHERS) |
335 | 335 | ||
336 | #define SSL_PKEY_RSA 0 | 336 | #define SSL_PKEY_RSA 0 |
337 | #define SSL_PKEY_ECC 1 | 337 | #define SSL_PKEY_ECC 1 |
@@ -378,7 +378,7 @@ struct ssl_cipher_st { | |||
378 | int alg_bits; /* Number of bits for algorithm */ | 378 | int alg_bits; /* Number of bits for algorithm */ |
379 | }; | 379 | }; |
380 | 380 | ||
381 | typedef struct ssl_method_internal_st { | 381 | struct ssl_method_st { |
382 | int dtls; | 382 | int dtls; |
383 | int server; | 383 | int server; |
384 | int version; | 384 | int version; |
@@ -402,17 +402,13 @@ typedef struct ssl_method_internal_st { | |||
402 | int peek); | 402 | int peek); |
403 | int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len); | 403 | int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len); |
404 | 404 | ||
405 | unsigned int enc_flags; /* SSL_ENC_FLAG_* */ | ||
406 | } SSL_METHOD_INTERNAL; | ||
407 | |||
408 | struct ssl_method_st { | ||
409 | int (*ssl_dispatch_alert)(SSL *s); | 405 | int (*ssl_dispatch_alert)(SSL *s); |
410 | int (*num_ciphers)(void); | 406 | int (*num_ciphers)(void); |
411 | const SSL_CIPHER *(*get_cipher)(unsigned int ncipher); | 407 | const SSL_CIPHER *(*get_cipher)(unsigned int ncipher); |
412 | const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); | 408 | const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr); |
413 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr); | 409 | int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr); |
414 | 410 | ||
415 | const struct ssl_method_internal_st *internal; | 411 | unsigned int enc_flags; /* SSL_ENC_FLAG_* */ |
416 | }; | 412 | }; |
417 | 413 | ||
418 | typedef struct ssl_session_internal_st { | 414 | typedef struct ssl_session_internal_st { |