diff options
author | tb <> | 2018-02-18 12:59:06 +0000 |
---|---|---|
committer | tb <> | 2018-02-18 12:59:06 +0000 |
commit | e93d065cd30e8c62fbdbb564869ab127b31ce83b (patch) | |
tree | 9aada9bf10c4eb0ef271487a07f17f891fdd5178 /src/lib/libcrypto/bio/bio_meth.c | |
parent | 9e320b370b52d7100229aad540de9a8bc5cf2266 (diff) | |
download | openbsd-e93d065cd30e8c62fbdbb564869ab127b31ce83b.tar.gz openbsd-e93d065cd30e8c62fbdbb564869ab127b31ce83b.tar.bz2 openbsd-e93d065cd30e8c62fbdbb564869ab127b31ce83b.zip |
Provide BIO_meth_set_gets().
ok jsing
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; |