diff options
author | tb <> | 2022-06-07 17:52:00 +0000 |
---|---|---|
committer | tb <> | 2022-06-07 17:52:00 +0000 |
commit | c4c129317518a60ab1f10c4642733f8241426098 (patch) | |
tree | 7f5fe756410becd7483619b50abd0f843706af66 /src/lib | |
parent | 35cf68a824e7b45b42bc647827673f1fcd97395c (diff) | |
download | openbsd-c4c129317518a60ab1f10c4642733f8241426098.tar.gz openbsd-c4c129317518a60ab1f10c4642733f8241426098.tar.bz2 openbsd-c4c129317518a60ab1f10c4642733f8241426098.zip |
Switch sid_ctx_length in SSL, SSL_CTX and SSL_SESSION to a size_t
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index e311661e2d..f5728003ea 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.393 2022/06/07 17:42:35 tb Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.394 2022/06/07 17:52:00 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 | * |
@@ -473,7 +473,7 @@ struct ssl_session_st { | |||
473 | /* this is used to determine whether the session is being reused in | 473 | /* this is used to determine whether the session is being reused in |
474 | * the appropriate context. It is up to the application to set this, | 474 | * the appropriate context. It is up to the application to set this, |
475 | * via SSL_new */ | 475 | * via SSL_new */ |
476 | unsigned int sid_ctx_length; | 476 | size_t sid_ctx_length; |
477 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; | 477 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; |
478 | 478 | ||
479 | /* Peer provided leaf (end-entity) certificate. */ | 479 | /* Peer provided leaf (end-entity) certificate. */ |
@@ -888,7 +888,7 @@ struct ssl_ctx_st { | |||
888 | STACK_OF(X509) *extra_certs; | 888 | STACK_OF(X509) *extra_certs; |
889 | 889 | ||
890 | int verify_mode; | 890 | int verify_mode; |
891 | unsigned int sid_ctx_length; | 891 | size_t sid_ctx_length; |
892 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; | 892 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; |
893 | 893 | ||
894 | X509_VERIFY_PARAM *param; | 894 | X509_VERIFY_PARAM *param; |
@@ -1082,7 +1082,7 @@ struct ssl_st { | |||
1082 | 1082 | ||
1083 | /* the session_id_context is used to ensure sessions are only reused | 1083 | /* the session_id_context is used to ensure sessions are only reused |
1084 | * in the appropriate context */ | 1084 | * in the appropriate context */ |
1085 | unsigned int sid_ctx_length; | 1085 | size_t sid_ctx_length; |
1086 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; | 1086 | unsigned char sid_ctx[SSL_MAX_SID_CTX_LENGTH]; |
1087 | 1087 | ||
1088 | /* This can also be in the session once a session is established */ | 1088 | /* This can also be in the session once a session is established */ |