mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
remove wolfssl_fgets
This commit is contained in:
committed by
Takashi Kojo
parent
109dd05bb3
commit
f1cba97773
@@ -1,58 +0,0 @@
|
|||||||
/* config.h
|
|
||||||
*
|
|
||||||
* Copyright (C) 2006-2017 wolfSSL Inc.
|
|
||||||
*
|
|
||||||
* This file is part of wolfSSL.
|
|
||||||
*
|
|
||||||
* wolfSSL is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* wolfSSL is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#define __CORTEX_M3__
|
|
||||||
|
|
||||||
#if defined(MDK_CONF_full)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_SimpleClient)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_SimpleServer)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_EchoClient)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_EchoServer)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_Benchmark)
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_CryptTest)
|
|
||||||
#define SINGLE_THREADED
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
|
|
||||||
#elif defined(MDK_CONF_wolfSSL_lib)
|
|
||||||
#include "config-Crypt.h"
|
|
||||||
#include "config-wolfSSL.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
@@ -27,10 +27,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* Go to STDIN */
|
|
||||||
#define fgets(buff, sz, fd) wolfssl_fgets(buff, sz, fd)
|
|
||||||
extern char * wolfssl_fgets ( char * str, int num, FILE * f ) ;
|
|
||||||
|
|
||||||
#define SOCKET_T int
|
#define SOCKET_T int
|
||||||
|
|
||||||
/*** #include <socket.h> ***/
|
/*** #include <socket.h> ***/
|
||||||
@@ -72,7 +68,7 @@ typedef int socklen_t ;
|
|||||||
#define tcp_connect wolfssl_tcp_connect
|
#define tcp_connect wolfssl_tcp_connect
|
||||||
#define tcp_socket wolfssl_tcp_soket
|
#define tcp_socket wolfssl_tcp_soket
|
||||||
#define tcp_listen wolfssl_tcp_listen
|
#define tcp_listen wolfssl_tcp_listen
|
||||||
#define tcp_select(a,b) (0)
|
#define tcp_select wolfssl_tcp_select
|
||||||
#define connect(a,b,c) connect(a, (SOCKADDR *)(b), c)
|
#define connect(a,b,c) connect(a, (SOCKADDR *)(b), c)
|
||||||
#define SOCKADDR struct sockaddr
|
#define SOCKADDR struct sockaddr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user