summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio.h
diff options
context:
space:
mode:
authorschwarze <>2023-08-25 12:37:33 +0000
committerschwarze <>2023-08-25 12:37:33 +0000
commitb85d8476c405a45be47e5c1b7616f15b8f2f31a6 (patch)
tree85c857d80108baca0bc656ccbea65537c048cc79 /src/lib/libcrypto/bio/bio.h
parente2a57b655c4b3eec8bbc5b212944e20daba3edd4 (diff)
downloadopenbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.tar.gz
openbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.tar.bz2
openbsd-b85d8476c405a45be47e5c1b7616f15b8f2f31a6.zip
KNF, no assembly change
OK tb@ jsing@
Diffstat (limited to 'src/lib/libcrypto/bio/bio.h')
-rw-r--r--src/lib/libcrypto/bio/bio.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index 8450780f69..b955524c45 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.59 2023/07/28 09:58:30 tb Exp $ */ 1/* $OpenBSD: bio.h,v 1.60 2023/08/25 12:37:33 schwarze 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 *
@@ -524,9 +524,8 @@ int BIO_ctrl_reset_read_request(BIO *b);
524/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */ 524/* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
525int BIO_set_ex_data(BIO *bio, int idx, void *data); 525int BIO_set_ex_data(BIO *bio, int idx, void *data);
526void *BIO_get_ex_data(BIO *bio, int idx); 526void *BIO_get_ex_data(BIO *bio, int idx);
527int 527int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
528BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, 528 CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
529CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
530unsigned long BIO_number_read(BIO *bio); 529unsigned long BIO_number_read(BIO *bio);
531unsigned long BIO_number_written(BIO *bio); 530unsigned long BIO_number_written(BIO *bio);
532 531
@@ -600,12 +599,10 @@ int BIO_dgram_non_fatal_error(int _error);
600 599
601int BIO_fd_should_retry(int i); 600int BIO_fd_should_retry(int i);
602int BIO_fd_non_fatal_error(int _error); 601int BIO_fd_non_fatal_error(int _error);
603int 602int BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u),
604BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), 603 void *u, const char *s, int len);
605void *u, const char *s, int len); 604int BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
606int 605 void *u, const char *s, int len, int indent);
607BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
608void *u, const char *s, int len, int indent);
609int BIO_dump(BIO *b, const char *bytes, int len); 606int BIO_dump(BIO *b, const char *bytes, int len);
610int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); 607int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);
611int BIO_dump_fp(FILE *fp, const char *s, int len); 608int BIO_dump_fp(FILE *fp, const char *s, int len);
@@ -636,9 +633,8 @@ BIO *BIO_new_fd(int fd, int close_flag);
636BIO *BIO_new_connect(const char *host_port); 633BIO *BIO_new_connect(const char *host_port);
637BIO *BIO_new_accept(const char *host_port); 634BIO *BIO_new_accept(const char *host_port);
638 635
639int 636int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
640BIO_new_bio_pair(BIO **bio1, size_t writebuf1, 637 BIO **bio2, size_t writebuf2);
641BIO **bio2, size_t writebuf2);
642/* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. 638/* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.
643 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. 639 * Otherwise returns 0 and sets *bio1 and *bio2 to NULL.
644 * Size 0 uses default value. 640 * Size 0 uses default value.