|
@@ -16,12 +16,6 @@
|
|
|
|
|
|
static int enc_write(BIO *h, const char *buf, int num);
|
|
|
static int enc_read(BIO *h, char *buf, int size);
|
|
|
-/*
|
|
|
- * static int enc_puts(BIO *h, const char *str);
|
|
|
- */
|
|
|
-/*
|
|
|
- * static int enc_gets(BIO *h, char *str, int size);
|
|
|
- */
|
|
|
static long enc_ctrl(BIO *h, int cmd, long arg1, void *arg2);
|
|
|
static int enc_new(BIO *h);
|
|
|
static int enc_free(BIO *data);
|
|
@@ -405,26 +399,6 @@ static long enc_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
|
|
|
return (ret);
|
|
|
}
|
|
|
|
|
|
-/*-
|
|
|
-void BIO_set_cipher_ctx(b,c)
|
|
|
-BIO *b;
|
|
|
-EVP_CIPHER_ctx *c;
|
|
|
- {
|
|
|
- if (b == NULL) return;
|
|
|
-
|
|
|
- if ((b->callback != NULL) &&
|
|
|
- (b->callback(b,BIO_CB_CTRL,(char *)c,BIO_CTRL_SET,e,0L) <= 0))
|
|
|
- return;
|
|
|
-
|
|
|
- b->init=1;
|
|
|
- ctx=(BIO_ENC_CTX *)b->ptr;
|
|
|
- memcpy(ctx->cipher,c,sizeof(EVP_CIPHER_CTX));
|
|
|
-
|
|
|
- if (b->callback != NULL)
|
|
|
- b->callback(b,BIO_CB_CTRL,(char *)c,BIO_CTRL_SET,e,1L);
|
|
|
- }
|
|
|
-*/
|
|
|
-
|
|
|
int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,
|
|
|
const unsigned char *i, int e)
|
|
|
{
|