diff options
author | tb <> | 2022-07-02 16:31:04 +0000 |
---|---|---|
committer | tb <> | 2022-07-02 16:31:04 +0000 |
commit | 5d994915db5d0a0615b6618184d705dbf25a7473 (patch) | |
tree | bc3bde853323758696c370e558e602d43422a86d /src/lib/libssl/ssl_locl.h | |
parent | b6005b83ccc59320a316c38108b7b45ca4682fbd (diff) | |
download | openbsd-5d994915db5d0a0615b6618184d705dbf25a7473.tar.gz openbsd-5d994915db5d0a0615b6618184d705dbf25a7473.tar.bz2 openbsd-5d994915db5d0a0615b6618184d705dbf25a7473.zip |
Stop using ssl{_ctx,}_security() outside of ssl_seclevel.c
The API is ugly and we can easily abstract it away. The SSL_SECOP_* stuff
is now confined into ssl_seclevel.c and the rest of the library can make
use of the more straightforward wrappers, which makes it a lot easier on
the eyes.
ok beck jsing
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index a2ca99c02d..4f1862254b 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.410 2022/07/02 16:00:12 tb Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.411 2022/07/02 16:31:04 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 | * |
@@ -1296,11 +1296,13 @@ int ssl_security_default_cb(const SSL *ssl, const SSL_CTX *ctx, int op, | |||
1296 | int ssl_security_dummy_cb(const SSL *ssl, const SSL_CTX *ctx, int op, | 1296 | int ssl_security_dummy_cb(const SSL *ssl, const SSL_CTX *ctx, int op, |
1297 | int bits, int nid, void *other, void *ex_data); | 1297 | int bits, int nid, void *other, void *ex_data); |
1298 | 1298 | ||
1299 | int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid, | 1299 | int ssl_security_cipher_check(const SSL *ssl, SSL_CIPHER *cipher); |
1300 | void *other); | 1300 | int ssl_security_shared_cipher(const SSL *ssl, SSL_CIPHER *cipher); |
1301 | int ssl_security(const SSL *ssl, int op, int bits, int nid, void *other); | 1301 | int ssl_security_supported_cipher(const SSL *ssl, SSL_CIPHER *cipher); |
1302 | int ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh); | 1302 | int ssl_ctx_security_dh(const SSL_CTX *ctx, DH *dh); |
1303 | int ssl_security_dh(const SSL *ssl, DH *dh); | 1303 | int ssl_security_dh(const SSL *ssl, DH *dh); |
1304 | int ssl_security_sigalg_check(const SSL *ssl, const EVP_PKEY *pkey); | ||
1305 | int ssl_security_tickets(const SSL *ssl); | ||
1304 | int ssl_security_version(const SSL *ssl, int version); | 1306 | int ssl_security_version(const SSL *ssl, int version); |
1305 | int ssl_security_cert(const SSL_CTX *ctx, const SSL *ssl, X509 *x509, | 1307 | int ssl_security_cert(const SSL_CTX *ctx, const SSL *ssl, X509 *x509, |
1306 | int is_peer, int *out_error); | 1308 | int is_peer, int *out_error); |