summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2021-12-01 09:06:30 +0000
committerjsing <>2021-12-01 09:06:30 +0000
commitabffc34ff9ac2c1d8a12489536d47b0fc9ea5c79 (patch)
tree20fb02ae813695dd28f88681794b4e64f59b6d4c /src
parentc496f2681836b93a1a548b11bc3c1fe7fed4a74f (diff)
downloadopenbsd-abffc34ff9ac2c1d8a12489536d47b0fc9ea5c79.tar.gz
openbsd-abffc34ff9ac2c1d8a12489536d47b0fc9ea5c79.tar.bz2
openbsd-abffc34ff9ac2c1d8a12489536d47b0fc9ea5c79.zip
Remove dead code.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/evp/bio_enc.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/lib/libcrypto/evp/bio_enc.c b/src/lib/libcrypto/evp/bio_enc.c
index 7b55998952..33f611d178 100644
--- a/src/lib/libcrypto/evp/bio_enc.c
+++ b/src/lib/libcrypto/evp/bio_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_enc.c,v 1.22 2018/08/24 19:30:24 tb Exp $ */ 1/* $OpenBSD: bio_enc.c,v 1.23 2021/12/01 09:06:30 jsing 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 *
@@ -384,26 +384,6 @@ enc_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
384 return (ret); 384 return (ret);
385} 385}
386 386
387/*
388void BIO_set_cipher_ctx(b,c)
389BIO *b;
390EVP_CIPHER_ctx *c;
391 {
392 if (b == NULL) return;
393
394 if ((b->callback != NULL) &&
395 (b->callback(b,BIO_CB_CTRL,(char *)c,BIO_CTRL_SET,e,0L) <= 0))
396 return;
397
398 b->init=1;
399 ctx=(BIO_ENC_CTX *)b->ptr;
400 memcpy(ctx->cipher,c,sizeof(EVP_CIPHER_CTX));
401
402 if (b->callback != NULL)
403 b->callback(b,BIO_CB_CTRL,(char *)c,BIO_CTRL_SET,e,1L);
404 }
405*/
406
407int 387int
408BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, 388BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
409 const unsigned char *i, int e) 389 const unsigned char *i, int e)