diff options
author | tb <> | 2022-06-28 20:44:49 +0000 |
---|---|---|
committer | tb <> | 2022-06-28 20:44:49 +0000 |
commit | 62de0d466feaa1f2912c54439a78a4028f743fa2 (patch) | |
tree | 16cf0f605b78c8262909f51e0dc7ad2216f1a9d8 /src | |
parent | a85d7465f2a36f6ef440015545b84213af5aa5a1 (diff) | |
download | openbsd-62de0d466feaa1f2912c54439a78a4028f743fa2.tar.gz openbsd-62de0d466feaa1f2912c54439a78a4028f743fa2.tar.bz2 openbsd-62de0d466feaa1f2912c54439a78a4028f743fa2.zip |
Implement ssl{,_ctx}_security()
ok beck jsing sthen
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/ssl_seclevel.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_seclevel.c b/src/lib/libssl/ssl_seclevel.c index 3da78c65b7..d86d38ebc8 100644 --- a/src/lib/libssl/ssl_seclevel.c +++ b/src/lib/libssl/ssl_seclevel.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_seclevel.c,v 1.1 2022/06/28 20:40:24 tb Exp $ */ | 1 | /* $OpenBSD: ssl_seclevel.c,v 1.2 2022/06/28 20:44:49 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2020 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -192,3 +192,17 @@ ssl_security_dummy_cb(const SSL *ssl, const SSL_CTX *ctx, int op, int bits, | |||
192 | { | 192 | { |
193 | return 1; | 193 | return 1; |
194 | } | 194 | } |
195 | |||
196 | int | ||
197 | ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid, void *other) | ||
198 | { | ||
199 | return ctx->internal->cert->security_cb(NULL, ctx, op, bits, nid, other, | ||
200 | ctx->internal->cert->security_ex_data); | ||
201 | } | ||
202 | |||
203 | int | ||
204 | ssl_security(const SSL *ssl, int op, int bits, int nid, void *other) | ||
205 | { | ||
206 | return ssl->cert->security_cb(ssl, NULL, op, bits, nid, other, | ||
207 | ssl->cert->security_ex_data); | ||
208 | } | ||