summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bio.h
diff options
context:
space:
mode:
authorjsing <>2018-02-20 17:15:27 +0000
committerjsing <>2018-02-20 17:15:27 +0000
commit4f1ee631944961365c3b2ee139bc108c1ceff2ed (patch)
treeaaa79b91c7a94144ce88e4371f39e925adcc904d /src/lib/libcrypto/bio/bio.h
parent2f0d52b8a3e3ce63552d3125a01f70077b6e6b1a (diff)
downloadopenbsd-4f1ee631944961365c3b2ee139bc108c1ceff2ed.tar.gz
openbsd-4f1ee631944961365c3b2ee139bc108c1ceff2ed.tar.bz2
openbsd-4f1ee631944961365c3b2ee139bc108c1ceff2ed.zip
Provide BIO_get_new_index().
Based on BoringSSL.
Diffstat (limited to 'src/lib/libcrypto/bio/bio.h')
-rw-r--r--src/lib/libcrypto/bio/bio.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index 8efeba2005..1d34f082ee 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.33 2018/02/18 12:59:06 tb Exp $ */ 1/* $OpenBSD: bio.h,v 1.34 2018/02/20 17:15:27 jsing 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 *
@@ -103,6 +103,12 @@ extern "C" {
103#define BIO_TYPE_FILTER 0x0200 103#define BIO_TYPE_FILTER 0x0200
104#define BIO_TYPE_SOURCE_SINK 0x0400 104#define BIO_TYPE_SOURCE_SINK 0x0400
105 105
106/*
107 * BIO_TYPE_START is the first user-allocated BIO type. No pre-defined type,
108 * flag bits aside, may exceed this value.
109 */
110#define BIO_TYPE_START 128
111
106/* BIO_FILENAME_READ|BIO_CLOSE to open or close on free. 112/* BIO_FILENAME_READ|BIO_CLOSE to open or close on free.
107 * BIO_set_fp(in,stdin,BIO_NOCLOSE); */ 113 * BIO_set_fp(in,stdin,BIO_NOCLOSE); */
108#define BIO_NOCLOSE 0x00 114#define BIO_NOCLOSE 0x00
@@ -580,6 +586,7 @@ int
580BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, 586BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
581asn1_ps_func **psuffix_free); 587asn1_ps_func **psuffix_free);
582 588
589int BIO_get_new_index(void);
583BIO_METHOD *BIO_s_file(void ); 590BIO_METHOD *BIO_s_file(void );
584BIO *BIO_new_file(const char *filename, const char *mode); 591BIO *BIO_new_file(const char *filename, const char *mode);
585BIO *BIO_new_fp(FILE *stream, int close_flag); 592BIO *BIO_new_fp(FILE *stream, int close_flag);