diff options
Diffstat (limited to 'src/lib/libcrypto/evp/bio_enc.c')
| -rw-r--r-- | src/lib/libcrypto/evp/bio_enc.c | 22 |
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 | /* | ||
| 388 | void BIO_set_cipher_ctx(b,c) | ||
| 389 | BIO *b; | ||
| 390 | EVP_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 | |||
| 407 | int | 387 | int |
| 408 | BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, | 388 | BIO_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) |
