diff options
author | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-27 18:19:37 +0000 |
---|---|---|
committer | Martin Hedenfal <martinh@cvs.openbsd.org> | 2010-06-27 18:19:37 +0000 |
commit | 85f58eddeb25c7a516c9b99194ab3a845e25c2d1 (patch) | |
tree | f42c388aff0cc682afe487a8d7974625a35497de /usr.sbin/ldapd/ssl_privsep.c | |
parent | 4d0b1da009b5bc715bec383893f2c9d28b5f9f58 (diff) |
Remove unused functions and variables, found by lint.
Diffstat (limited to 'usr.sbin/ldapd/ssl_privsep.c')
-rw-r--r-- | usr.sbin/ldapd/ssl_privsep.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/usr.sbin/ldapd/ssl_privsep.c b/usr.sbin/ldapd/ssl_privsep.c index d3508915d4d..25181595dd6 100644 --- a/usr.sbin/ldapd/ssl_privsep.c +++ b/usr.sbin/ldapd/ssl_privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_privsep.c,v 1.2 2010/05/31 18:29:04 martinh Exp $ */ +/* $OpenBSD: ssl_privsep.c,v 1.3 2010/06/27 18:19:36 martinh Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. @@ -78,7 +78,6 @@ int ssl_ctx_use_private_key(SSL_CTX *, char *, off_t); int ssl_ctx_use_certificate_chain(SSL_CTX *, char *, off_t); -int ssl_ctx_load_verify_memory(SSL_CTX *, char *, off_t); int ssl_by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **); X509_LOOKUP_METHOD x509_mem_lookup = { @@ -127,26 +126,6 @@ end: } int -ssl_ctx_load_verify_memory(SSL_CTX *ctx, char *buf, off_t len) -{ - X509_LOOKUP *lu; - struct iovec iov; - - if ((lu = X509_STORE_add_lookup(ctx->cert_store, - &x509_mem_lookup)) == NULL) - return (0); - - iov.iov_base = buf; - iov.iov_len = len; - - if (!ssl_by_mem_ctrl(lu, X509_L_ADD_MEM, - (const char *)&iov, X509_FILETYPE_PEM, NULL)) - return (0); - - return (1); -} - -int ssl_by_mem_ctrl(X509_LOOKUP *lu, int cmd, const char *buf, long type, char **ret) { |