X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=include%2Fopenssl%2Fcore_numbers.h;fp=include%2Fopenssl%2Fcore_numbers.h;h=95cfe46a2dde557a61001eed837335461b9f31e9;hp=ad8b345f8784df5e7de0624e62318a733378802a;hb=25e601445ae244ed623b2f5d6b28788488d87663;hpb=5e0d9c861bc44070c61b9b109884dc8aa5e2e8d1 diff --git a/include/openssl/core_numbers.h b/include/openssl/core_numbers.h index ad8b345f87..95cfe46a2d 100644 --- a/include/openssl/core_numbers.h +++ b/include/openssl/core_numbers.h @@ -118,6 +118,18 @@ OSSL_CORE_MAKE_FUNC(int, OSSL_CORE_MAKE_FUNC(void, OPENSSL_cleanse, (void *ptr, size_t len)) +/* Bio functions provided by the core */ +#define OSSL_FUNC_BIO_NEW_FILE 22 +#define OSSL_FUNC_BIO_NEW_MEMBUF 23 +#define OSSL_FUNC_BIO_READ 24 +#define OSSL_FUNC_BIO_FREE 25 + +OSSL_CORE_MAKE_FUNC(BIO *, BIO_new_file, (const char *filename, const char *mode)) +OSSL_CORE_MAKE_FUNC(BIO *, BIO_new_membuf, (const void *buf, int len)) +OSSL_CORE_MAKE_FUNC(int, BIO_read, (BIO *bio, void *data, size_t data_len, + size_t *bytes_read)) +OSSL_CORE_MAKE_FUNC(int, BIO_free, (BIO *bio)) + /* Functions provided by the provider to the Core, reserved numbers 1024-1535 */ # define OSSL_FUNC_PROVIDER_TEARDOWN 1024 OSSL_CORE_MAKE_FUNC(void,provider_teardown,(void *provctx))