diff options
author | jsing <> | 2021-10-25 10:01:46 +0000 |
---|---|---|
committer | jsing <> | 2021-10-25 10:01:46 +0000 |
commit | b56105c2617b86206d3688dd7940aa6e553af6e1 (patch) | |
tree | 7da475234e07731ebcbe2828153d1920d308e436 /src/lib/libssl/ssl_locl.h | |
parent | 75891c69eb8972c8d768d8bd1068a807ba084652 (diff) | |
download | openbsd-b56105c2617b86206d3688dd7940aa6e553af6e1.tar.gz openbsd-b56105c2617b86206d3688dd7940aa6e553af6e1.tar.bz2 openbsd-b56105c2617b86206d3688dd7940aa6e553af6e1.zip |
Fold SSL_SESSION_INTERNAL back into SSL_SESSION.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index aa6233e617..01c22762ef 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.366 2021/10/23 20:42:50 beck Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.367 2021/10/25 10:01:46 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 | * |
@@ -412,28 +412,6 @@ struct ssl_method_st { | |||
412 | unsigned int enc_flags; /* SSL_ENC_FLAG_* */ | 412 | unsigned int enc_flags; /* SSL_ENC_FLAG_* */ |
413 | }; | 413 | }; |
414 | 414 | ||
415 | typedef struct ssl_session_internal_st { | ||
416 | CRYPTO_EX_DATA ex_data; /* application specific data */ | ||
417 | |||
418 | /* These are used to make removal of session-ids more | ||
419 | * efficient and to implement a maximum cache size. */ | ||
420 | struct ssl_session_st *prev, *next; | ||
421 | |||
422 | /* Used to indicate that session resumption is not allowed. | ||
423 | * Applications can also set this bit for a new session via | ||
424 | * not_resumable_session_cb to disable session caching and tickets. */ | ||
425 | int not_resumable; | ||
426 | |||
427 | /* The cert is the certificate used to establish this connection */ | ||
428 | struct sess_cert_st /* SESS_CERT */ *sess_cert; | ||
429 | |||
430 | size_t tlsext_ecpointformatlist_length; | ||
431 | uint8_t *tlsext_ecpointformatlist; /* peer's list */ | ||
432 | size_t tlsext_supportedgroups_length; | ||
433 | uint16_t *tlsext_supportedgroups; /* peer's list */ | ||
434 | } SSL_SESSION_INTERNAL; | ||
435 | #define SSI(s) (s->session->internal) | ||
436 | |||
437 | /* Lets make this into an ASN.1 type structure as follows | 415 | /* Lets make this into an ASN.1 type structure as follows |
438 | * SSL_SESSION_ID ::= SEQUENCE { | 416 | * SSL_SESSION_ID ::= SEQUENCE { |
439 | * version INTEGER, -- structure version number | 417 | * version INTEGER, -- structure version number |
@@ -500,7 +478,24 @@ struct ssl_session_st { | |||
500 | size_t tlsext_ticklen; /* Session ticket length */ | 478 | size_t tlsext_ticklen; /* Session ticket length */ |
501 | uint32_t tlsext_tick_lifetime_hint; /* Session lifetime hint in seconds */ | 479 | uint32_t tlsext_tick_lifetime_hint; /* Session lifetime hint in seconds */ |
502 | 480 | ||
503 | struct ssl_session_internal_st *internal; | 481 | CRYPTO_EX_DATA ex_data; /* application specific data */ |
482 | |||
483 | /* These are used to make removal of session-ids more | ||
484 | * efficient and to implement a maximum cache size. */ | ||
485 | struct ssl_session_st *prev, *next; | ||
486 | |||
487 | /* Used to indicate that session resumption is not allowed. | ||
488 | * Applications can also set this bit for a new session via | ||
489 | * not_resumable_session_cb to disable session caching and tickets. */ | ||
490 | int not_resumable; | ||
491 | |||
492 | /* The cert is the certificate used to establish this connection */ | ||
493 | struct sess_cert_st /* SESS_CERT */ *sess_cert; | ||
494 | |||
495 | size_t tlsext_ecpointformatlist_length; | ||
496 | uint8_t *tlsext_ecpointformatlist; /* peer's list */ | ||
497 | size_t tlsext_supportedgroups_length; | ||
498 | uint16_t *tlsext_supportedgroups; /* peer's list */ | ||
504 | }; | 499 | }; |
505 | 500 | ||
506 | typedef struct cert_pkey_st { | 501 | typedef struct cert_pkey_st { |