sync with OpenBSD -current
This commit is contained in:
parent
0189975fb5
commit
cc5edceac3
87 changed files with 1329 additions and 4278 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssl_lib.c,v 1.321 2024/03/02 11:48:55 tb Exp $ */
|
||||
/* $OpenBSD: ssl_lib.c,v 1.322 2024/03/27 06:47:52 tb Exp $ */
|
||||
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
||||
* All rights reserved.
|
||||
*
|
||||
|
@ -605,8 +605,7 @@ LSSL_ALIAS(SSL_free);
|
|||
int
|
||||
SSL_up_ref(SSL *s)
|
||||
{
|
||||
int refs = CRYPTO_add(&s->references, 1, CRYPTO_LOCK_SSL);
|
||||
return (refs > 1) ? 1 : 0;
|
||||
return CRYPTO_add(&s->references, 1, CRYPTO_LOCK_SSL) > 1;
|
||||
}
|
||||
LSSL_ALIAS(SSL_up_ref);
|
||||
|
||||
|
@ -2217,8 +2216,7 @@ LSSL_ALIAS(SSL_CTX_free);
|
|||
int
|
||||
SSL_CTX_up_ref(SSL_CTX *ctx)
|
||||
{
|
||||
int refs = CRYPTO_add(&ctx->references, 1, CRYPTO_LOCK_SSL_CTX);
|
||||
return ((refs > 1) ? 1 : 0);
|
||||
return CRYPTO_add(&ctx->references, 1, CRYPTO_LOCK_SSL_CTX) > 1;
|
||||
}
|
||||
LSSL_ALIAS(SSL_CTX_up_ref);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue