diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bio_meth.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bio_meth.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio_meth.c b/src/lib/libcrypto/bio/bio_meth.c index 83e5254304..65437a8e60 100644 --- a/src/lib/libcrypto/bio/bio_meth.c +++ b/src/lib/libcrypto/bio/bio_meth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_meth.c,v 1.1 2018/02/17 13:57:14 tb Exp $ */ | 1 | /* $OpenBSD: bio_meth.c,v 1.2 2018/02/18 12:59:06 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -61,6 +61,13 @@ BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)) | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | int | 63 | int |
| 64 | BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)) | ||
| 65 | { | ||
| 66 | biom->bgets = gets; | ||
| 67 | return 1; | ||
| 68 | } | ||
| 69 | |||
| 70 | int | ||
| 64 | BIO_meth_set_ctrl(BIO_METHOD *biom, long (*ctrl)(BIO *, int, long, void *)) | 71 | BIO_meth_set_ctrl(BIO_METHOD *biom, long (*ctrl)(BIO *, int, long, void *)) |
| 65 | { | 72 | { |
| 66 | biom->ctrl = ctrl; | 73 | biom->ctrl = ctrl; |
