wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   OS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers bio.h Source File

bio.h

00001 /* bio.h
00002  *
00003  * Copyright (C) 2006-2017 wolfSSL Inc.
00004  *
00005  * This file is part of wolfSSL.
00006  *
00007  * wolfSSL is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * wolfSSL is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
00020  */
00021 
00022 /* bio.h for openssl */
00023 
00024 
00025 #ifndef WOLFSSL_BIO_H_
00026 #define WOLFSSL_BIO_H_
00027 
00028 #include <wolfssl/openssl/ssl.h>
00029 
00030 
00031 #ifdef __cplusplus
00032     extern "C" {
00033 #endif
00034 
00035 #define BIO_FLAG_BASE64_NO_NL WOLFSSL_BIO_FLAG_BASE64_NO_NL
00036 #define BIO_FLAG_READ         WOLFSSL_BIO_FLAG_READ
00037 #define BIO_FLAG_WRITE        WOLFSSL_BIO_FLAG_WRITE
00038 #define BIO_FLAG_IO_SPECIAL   WOLFSSL_BIO_FLAG_IO_SPECIAL
00039 #define BIO_FLAG_RETRY        WOLFSSL_BIO_FLAG_RETRY
00040 
00041 #define BIO_find_type wolfSSL_BIO_find_type
00042 #define BIO_next      wolfSSL_BIO_next
00043 #define BIO_gets      wolfSSL_BIO_gets
00044 
00045 
00046 #define BIO_TYPE_FILE WOLFSSL_BIO_FILE
00047 #define BIO_TYPE_BIO  WOLFSSL_BIO_BIO
00048 #define BIO_TYPE_MEM  WOLFSSL_BIO_MEMORY
00049 #define BIO_TYPE_BASE64 WOLFSSL_BIO_BASE64
00050 
00051 
00052 #ifdef __cplusplus
00053     }  /* extern "C" */ 
00054 #endif
00055 
00056 
00057 #endif /* WOLFSSL_BIO_H_ */
00058 
00059