1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Move recently added min_version/max_version from SSL and SSL_CTX to their

opaque structs.
This commit is contained in:
jsing 2017-01-22 04:07:44 +00:00
parent 50ef2d7129
commit 8a7f7d9fbf
2 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ssl.h,v 1.103 2017/01/22 03:50:45 jsing Exp $ */
/* $OpenBSD: ssl.h,v 1.104 2017/01/22 04:07:44 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@ -697,9 +697,6 @@ struct ssl_ctx_internal_st;
struct ssl_ctx_st {
const SSL_METHOD *method;
uint16_t min_version;
uint16_t max_version;
STACK_OF(SSL_CIPHER) *cipher_list;
/* same as above but sorted for lookup */
STACK_OF(SSL_CIPHER) *cipher_list_by_id;
@ -1014,9 +1011,6 @@ struct ssl_st {
*/
int version;
uint16_t min_version;
uint16_t max_version;
int type; /* SSL_ST_CONNECT or SSL_ST_ACCEPT */
const SSL_METHOD *method; /* SSLv3 */

View File

@ -1,4 +1,4 @@
/* $OpenBSD: ssl_locl.h,v 1.146 2017/01/22 03:50:45 jsing Exp $ */
/* $OpenBSD: ssl_locl.h,v 1.147 2017/01/22 04:07:44 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@ -377,11 +377,13 @@ typedef struct ssl_session_internal_st {
} SSL_SESSION_INTERNAL;
typedef struct ssl_ctx_internal_st {
uint16_t min_version;
uint16_t max_version;
} SSL_CTX_INTERNAL;
typedef struct ssl_internal_st {
uint16_t min_version;
uint16_t max_version;
} SSL_INTERNAL;
typedef struct ssl3_state_internal_st {