diff options
Diffstat (limited to 'src/lib/libssl/ssl_local.h')
-rw-r--r-- | src/lib/libssl/ssl_local.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/libssl/ssl_local.h b/src/lib/libssl/ssl_local.h index 6095940388..acb87f8650 100644 --- a/src/lib/libssl/ssl_local.h +++ b/src/lib/libssl/ssl_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_local.h,v 1.27 2025/03/09 15:12:18 tb Exp $ */ | 1 | /* $OpenBSD: ssl_local.h,v 1.33 2025/05/10 06:04:36 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 | * |
@@ -203,7 +203,7 @@ __BEGIN_HIDDEN_DECLS | |||
203 | /* Bits for algorithm_auth (server authentication) */ | 203 | /* Bits for algorithm_auth (server authentication) */ |
204 | #define SSL_aRSA 0x00000001L /* RSA auth */ | 204 | #define SSL_aRSA 0x00000001L /* RSA auth */ |
205 | #define SSL_aNULL 0x00000004L /* no auth (i.e. use ADH or AECDH) */ | 205 | #define SSL_aNULL 0x00000004L /* no auth (i.e. use ADH or AECDH) */ |
206 | #define SSL_aECDSA 0x00000040L /* ECDSA auth*/ | 206 | #define SSL_aECDSA 0x00000040L /* ECDSA auth*/ |
207 | #define SSL_aTLS1_3 0x00000400L /* TLSv1.3 authentication */ | 207 | #define SSL_aTLS1_3 0x00000400L /* TLSv1.3 authentication */ |
208 | 208 | ||
209 | /* Bits for algorithm_enc (symmetric encryption) */ | 209 | /* Bits for algorithm_enc (symmetric encryption) */ |
@@ -289,12 +289,8 @@ __BEGIN_HIDDEN_DECLS | |||
289 | * SSL_aDSS <- DSA_SIGN | 289 | * SSL_aDSS <- DSA_SIGN |
290 | */ | 290 | */ |
291 | 291 | ||
292 | /* From ECC-TLS draft, used in encoding the curve type in | 292 | /* From RFC 4492, section 5.4. Only named curves are supported. */ |
293 | * ECParameters | 293 | #define NAMED_CURVE_TYPE 3 |
294 | */ | ||
295 | #define EXPLICIT_PRIME_CURVE_TYPE 1 | ||
296 | #define EXPLICIT_CHAR2_CURVE_TYPE 2 | ||
297 | #define NAMED_CURVE_TYPE 3 | ||
298 | 294 | ||
299 | typedef struct ssl_cert_pkey_st { | 295 | typedef struct ssl_cert_pkey_st { |
300 | X509 *x509; | 296 | X509 *x509; |
@@ -396,7 +392,7 @@ struct ssl_method_st { | |||
396 | * PSK_identity_hint [ 7 ] EXPLICIT OCTET STRING, -- optional PSK identity hint | 392 | * PSK_identity_hint [ 7 ] EXPLICIT OCTET STRING, -- optional PSK identity hint |
397 | * PSK_identity [ 8 ] EXPLICIT OCTET STRING, -- optional PSK identity | 393 | * PSK_identity [ 8 ] EXPLICIT OCTET STRING, -- optional PSK identity |
398 | * Ticket_lifetime_hint [9] EXPLICIT INTEGER, -- server's lifetime hint for session ticket | 394 | * Ticket_lifetime_hint [9] EXPLICIT INTEGER, -- server's lifetime hint for session ticket |
399 | * Ticket [10] EXPLICIT OCTET STRING, -- session ticket (clients only) | 395 | * Ticket [10] EXPLICIT OCTET STRING, -- session ticket (clients only) |
400 | * Compression_meth [11] EXPLICIT OCTET STRING, -- optional compression method | 396 | * Compression_meth [11] EXPLICIT OCTET STRING, -- optional compression method |
401 | * SRP_username [ 12 ] EXPLICIT OCTET STRING -- optional SRP username | 397 | * SRP_username [ 12 ] EXPLICIT OCTET STRING -- optional SRP username |
402 | * } | 398 | * } |
@@ -1054,7 +1050,7 @@ struct ssl_st { | |||
1054 | 1050 | ||
1055 | int renegotiate;/* 1 if we are renegotiating. | 1051 | int renegotiate;/* 1 if we are renegotiating. |
1056 | * 2 if we are a server and are inside a handshake | 1052 | * 2 if we are a server and are inside a handshake |
1057 | * (i.e. not just sending a HelloRequest) */ | 1053 | * (i.e. not just sending a HelloRequest) */ |
1058 | 1054 | ||
1059 | int rstate; /* where we are when reading */ | 1055 | int rstate; /* where we are when reading */ |
1060 | 1056 | ||
@@ -1078,7 +1074,7 @@ typedef struct ssl3_record_internal_st { | |||
1078 | 1074 | ||
1079 | typedef struct ssl3_buffer_internal_st { | 1075 | typedef struct ssl3_buffer_internal_st { |
1080 | unsigned char *buf; /* at least SSL3_RT_MAX_PACKET_SIZE bytes, | 1076 | unsigned char *buf; /* at least SSL3_RT_MAX_PACKET_SIZE bytes, |
1081 | * see ssl3_setup_buffers() */ | 1077 | * see ssl3_setup_buffers() */ |
1082 | size_t len; /* buffer size */ | 1078 | size_t len; /* buffer size */ |
1083 | int offset; /* where to 'copy from' */ | 1079 | int offset; /* where to 'copy from' */ |
1084 | int left; /* how many bytes left */ | 1080 | int left; /* how many bytes left */ |
@@ -1443,9 +1439,10 @@ int ssl3_cbc_digest_record(const EVP_MD_CTX *ctx, unsigned char *md_out, | |||
1443 | unsigned int mac_secret_length); | 1439 | unsigned int mac_secret_length); |
1444 | int SSL_state_func_code(int _state); | 1440 | int SSL_state_func_code(int _state); |
1445 | 1441 | ||
1446 | #define SSLerror(s, r) SSL_error_internal(s, r, OPENSSL_FILE, OPENSSL_LINE) | 1442 | void SSL_error_internal(const SSL *s, int r, const char *f, int l); |
1447 | #define SSLerrorx(r) ERR_PUT_error(ERR_LIB_SSL,(0xfff),(r),OPENSSL_FILE,OPENSSL_LINE) | 1443 | #define SSLerror(s, r) SSL_error_internal(s, r, OPENSSL_FILE, OPENSSL_LINE) |
1448 | void SSL_error_internal(const SSL *s, int r, char *f, int l); | 1444 | #define SSLerrorx(r) ERR_PUT_error(ERR_LIB_SSL,(0xfff),(r),OPENSSL_FILE,OPENSSL_LINE) |
1445 | #define SYSerror(r) ERR_PUT_error(ERR_LIB_SYS,(0xfff),(r),OPENSSL_FILE,OPENSSL_LINE) | ||
1449 | 1446 | ||
1450 | #ifndef OPENSSL_NO_SRTP | 1447 | #ifndef OPENSSL_NO_SRTP |
1451 | 1448 | ||