diff options
author | tb <> | 2018-02-17 13:57:14 +0000 |
---|---|---|
committer | tb <> | 2018-02-17 13:57:14 +0000 |
commit | 4bef14eaf860ad986baccf704ff3db6053976558 (patch) | |
tree | bf207cf4ea7d8419a5d46d9d2d450fc612149ea0 /src/lib/libcrypto/bio/bio.h | |
parent | e1b05f77869d986a0aee6aa4076f008274e98d27 (diff) | |
download | openbsd-4bef14eaf860ad986baccf704ff3db6053976558.tar.gz openbsd-4bef14eaf860ad986baccf704ff3db6053976558.tar.bz2 openbsd-4bef14eaf860ad986baccf704ff3db6053976558.zip |
Provide BIO_meth_{free,new}() and BIO_meth_set_{create,crtl,destroy}()
and BIO_meth_set_{puts,read,write}().
ok jsing
Diffstat (limited to 'src/lib/libcrypto/bio/bio.h')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index faca125544..3a1577ab37 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.30 2017/04/06 18:25:38 deraadt Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.31 2018/02/17 13:57:14 tb 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 | * |
@@ -327,6 +327,17 @@ typedef struct bio_f_buffer_ctx_struct { | |||
327 | /* Prefix and suffix callback in ASN1 BIO */ | 327 | /* Prefix and suffix callback in ASN1 BIO */ |
328 | typedef int asn1_ps_func(BIO *b, unsigned char **pbuf, int *plen, void *parg); | 328 | typedef int asn1_ps_func(BIO *b, unsigned char **pbuf, int *plen, void *parg); |
329 | 329 | ||
330 | /* BIO_METHOD accessors */ | ||
331 | BIO_METHOD *BIO_meth_new(int type, const char *name); | ||
332 | void BIO_meth_free(BIO_METHOD *biom); | ||
333 | int BIO_meth_set_write(BIO_METHOD *biom, | ||
334 | int (*write)(BIO *, const char *, int)); | ||
335 | int BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int)); | ||
336 | int BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)); | ||
337 | int BIO_meth_set_ctrl(BIO_METHOD *biom, | ||
338 | int long (*ctrl)(BIO *, int, long, void *)); | ||
339 | int BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)); | ||
340 | int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)); | ||
330 | 341 | ||
331 | /* connect BIO stuff */ | 342 | /* connect BIO stuff */ |
332 | #define BIO_CONN_S_BEFORE 1 | 343 | #define BIO_CONN_S_BEFORE 1 |