diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_meth.c | 9 |
3 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index f8125ad9f7..77cf4399e7 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -292,6 +292,7 @@ BIO_meth_new | |||
292 | BIO_meth_set_create | 292 | BIO_meth_set_create |
293 | BIO_meth_set_ctrl | 293 | BIO_meth_set_ctrl |
294 | BIO_meth_set_destroy | 294 | BIO_meth_set_destroy |
295 | BIO_meth_set_gets | ||
295 | BIO_meth_set_puts | 296 | BIO_meth_set_puts |
296 | BIO_meth_set_read | 297 | BIO_meth_set_read |
297 | BIO_meth_set_write | 298 | BIO_meth_set_write |
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index c60ab389a0..8efeba2005 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.32 2018/02/18 12:58:25 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.33 2018/02/18 12:59:06 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 | * |
@@ -334,6 +334,7 @@ int BIO_meth_set_write(BIO_METHOD *biom, | |||
334 | int (*write)(BIO *, const char *, int)); | 334 | int (*write)(BIO *, const char *, int)); |
335 | int BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, 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 *)); | 336 | int BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)); |
337 | int BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)); | ||
337 | int BIO_meth_set_ctrl(BIO_METHOD *biom, | 338 | int BIO_meth_set_ctrl(BIO_METHOD *biom, |
338 | int long (*ctrl)(BIO *, int, long, void *)); | 339 | int long (*ctrl)(BIO *, int, long, void *)); |
339 | int BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)); | 340 | int BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)); |
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; |