summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bio.h')
-rw-r--r--src/lib/libcrypto/bio/bio.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index d0e2f3550c..8a473ca20a 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.40 2018/03/17 15:05:55 tb Exp $ */ 1/* $OpenBSD: bio.h,v 1.41 2018/05/01 13:29:09 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 *
@@ -286,7 +286,7 @@ typedef struct bio_method_st {
286} BIO_METHOD; 286} BIO_METHOD;
287 287
288struct bio_st { 288struct bio_st {
289 BIO_METHOD *method; 289 const BIO_METHOD *method;
290 /* bio, mode, argp, argi, argl, ret */ 290 /* bio, mode, argp, argi, argl, ret */
291 long (*callback)(struct bio_st *, int, const char *, int, long, long); 291 long (*callback)(struct bio_st *, int, const char *, int, long, long);
292 char *cb_arg; /* first argument for the callback */ 292 char *cb_arg; /* first argument for the callback */
@@ -601,8 +601,8 @@ BIO_METHOD *BIO_s_file(void );
601BIO *BIO_new_file(const char *filename, const char *mode); 601BIO *BIO_new_file(const char *filename, const char *mode);
602BIO *BIO_new_fp(FILE *stream, int close_flag); 602BIO *BIO_new_fp(FILE *stream, int close_flag);
603# define BIO_s_file_internal BIO_s_file 603# define BIO_s_file_internal BIO_s_file
604BIO * BIO_new(BIO_METHOD *type); 604BIO *BIO_new(const BIO_METHOD *type);
605int BIO_set(BIO *a, BIO_METHOD *type); 605int BIO_set(BIO *a, const BIO_METHOD *type);
606int BIO_free(BIO *a); 606int BIO_free(BIO *a);
607int BIO_up_ref(BIO *bio); 607int BIO_up_ref(BIO *bio);
608void *BIO_get_data(BIO *a); 608void *BIO_get_data(BIO *a);
@@ -643,16 +643,16 @@ long BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi,
643 643
644BIO_METHOD *BIO_s_mem(void); 644BIO_METHOD *BIO_s_mem(void);
645BIO *BIO_new_mem_buf(void *buf, int len); 645BIO *BIO_new_mem_buf(void *buf, int len);
646BIO_METHOD *BIO_s_socket(void); 646const BIO_METHOD *BIO_s_socket(void);
647BIO_METHOD *BIO_s_connect(void); 647const BIO_METHOD *BIO_s_connect(void);
648BIO_METHOD *BIO_s_accept(void); 648const BIO_METHOD *BIO_s_accept(void);
649BIO_METHOD *BIO_s_fd(void); 649const BIO_METHOD *BIO_s_fd(void);
650BIO_METHOD *BIO_s_log(void); 650const BIO_METHOD *BIO_s_log(void);
651BIO_METHOD *BIO_s_bio(void); 651const BIO_METHOD *BIO_s_bio(void);
652BIO_METHOD *BIO_s_null(void); 652const BIO_METHOD *BIO_s_null(void);
653BIO_METHOD *BIO_f_null(void); 653const BIO_METHOD *BIO_f_null(void);
654BIO_METHOD *BIO_f_buffer(void); 654const BIO_METHOD *BIO_f_buffer(void);
655BIO_METHOD *BIO_f_nbio_test(void); 655const BIO_METHOD *BIO_f_nbio_test(void);
656#ifndef OPENSSL_NO_DGRAM 656#ifndef OPENSSL_NO_DGRAM
657BIO_METHOD *BIO_s_datagram(void); 657BIO_METHOD *BIO_s_datagram(void);
658#endif 658#endif