diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bio_meth.c')
-rw-r--r-- | src/lib/libcrypto/bio/bio_meth.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio_meth.c b/src/lib/libcrypto/bio/bio_meth.c index 1fc0df534b..2eb6794f02 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.3 2018/02/20 18:13:31 tb Exp $ */ | 1 | /* $OpenBSD: bio_meth.c,v 1.4 2018/02/20 18:17:17 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -129,3 +129,19 @@ BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)) | |||
129 | biom->destroy = destroy; | 129 | biom->destroy = destroy; |
130 | return 1; | 130 | return 1; |
131 | } | 131 | } |
132 | |||
133 | long | ||
134 | (*BIO_meth_get_callback_ctrl(BIO_METHOD *biom))(BIO *, int, BIO_info_cb *) | ||
135 | { | ||
136 | return | ||
137 | (long (*)(BIO *, int, BIO_info_cb*))biom->callback_ctrl; /* XXX */ | ||
138 | } | ||
139 | |||
140 | int | ||
141 | BIO_meth_set_callback_ctrl(BIO_METHOD *biom, | ||
142 | long (*callback_ctrl)(BIO *, int, BIO_info_cb *)) | ||
143 | { | ||
144 | biom->callback_ctrl = | ||
145 | (long (*)(BIO *, int, bio_info_cb *))callback_ctrl; /* XXX */ | ||
146 | return 1; | ||
147 | } | ||