mirror of https://github.com/wolfSSL/wolfssl
added configure option and a stub source file for OCSP
This commit is contained in:
parent
607fcb2f3d
commit
c0783e4ec4
15
configure.ac
15
configure.ac
|
@ -470,6 +470,21 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# OCSP
|
||||||
|
AC_ARG_ENABLE(ocsp,
|
||||||
|
[ --enable-ocsp Enable OCSP (default: disabled)],
|
||||||
|
[ ENABLED_OCSP=$enableval ],
|
||||||
|
[ ENABLED_OCSP=no ],
|
||||||
|
)
|
||||||
|
|
||||||
|
if test "$ENABLED_OCSP" = "yes"
|
||||||
|
then
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL([BUILD_OCSP], [test "x$ENABLED_OCSP" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
# NTRU
|
# NTRU
|
||||||
ntruHome=`pwd`/NTRU_algorithm
|
ntruHome=`pwd`/NTRU_algorithm
|
||||||
ntruInclude=$ntruHome/cryptolib
|
ntruInclude=$ntruHome/cryptolib
|
||||||
|
|
|
@ -66,3 +66,7 @@ if BUILD_ECC
|
||||||
src_libcyassl_la_SOURCES += ctaocrypt/src/ecc.c
|
src_libcyassl_la_SOURCES += ctaocrypt/src/ecc.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if BUILD_OCSP
|
||||||
|
src_libcyassl_la_SOURCES += src/ocsp.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
/* ocsp.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2006-2012 Sawtooth Consulting Ltd.
|
||||||
|
*
|
||||||
|
* This file is part of CyaSSL.
|
||||||
|
*
|
||||||
|
* CyaSSL 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.
|
||||||
|
*
|
||||||
|
* CyaSSL 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <cyassl/error.h>
|
||||||
|
#include <cyassl/ctaocrypt/asn.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_OCSP
|
||||||
|
|
||||||
|
void ocsp_stub(void) {}
|
||||||
|
|
||||||
|
#endif /* HAVE_OCSP */
|
||||||
|
|
Loading…
Reference in New Issue