diff --git a/configure.ac b/configure.ac index d3a48512a..a099d50ce 100644 --- a/configure.ac +++ b/configure.ac @@ -1775,11 +1775,11 @@ AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([wolfssl/version.h]) AC_CONFIG_FILES([wolfssl/options.h]) #have options.h and version.h for autoconf fips tag and build -if test "x$ENABLED_FIPS" = "xyes" -then - AC_CONFIG_FILES([cyassl/version.h]) - AC_CONFIG_FILES([cyassl/options.h]) -fi +#if test "x$ENABLED_FIPS" = "xyes" +#then +# AC_CONFIG_FILES([cyassl/version.h]) +# AC_CONFIG_FILES([cyassl/options.h]) +#fi AC_CONFIG_FILES([support/wolfssl.pc]) AC_CONFIG_FILES([rpm/spec]) @@ -1846,6 +1846,26 @@ echo "#endif" >> $OPTION_FILE echo "" >> $OPTION_FILE echo +#backwards compatability for those who have included options or version +touch cyassl/options.h +touch cyassl/version.h +echo "/* cyassl options.h" > cyassl/options.h +echo " * generated from wolfssl/options.h" >> cyassl/options.h +echo " */\n" >> cyassl/options.h +while read -r line +do + echo "$line" >> cyassl/options.h +done < $OPTION_FILE + +echo "/* cyassl version.h" > cyassl/version.h +echo " * generated from wolfssl version.h" >> cyassl/version.h +echo " */\n" >> cyassl/version.h +while read -r line +do + echo "$line" >> cyassl/version.h +done < wolfssl/version.h +#end backwards compatibility + # output config summary echo "---" echo "Configuration summary for $PACKAGE_NAME version $VERSION" diff --git a/cyassl/version.h b/cyassl/version.h index 7f3235e91..3c358d6b1 100644 --- a/cyassl/version.h +++ b/cyassl/version.h @@ -1,22 +1,39 @@ -/* cyassl_version.h.in - * - * Copyright (C) 2006-2014 wolfSSL Inc. - * - * This file is part of wolfSSL. (formerly known as CyaSSL) - * - * 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-1301, USA +/* cyassl version.h + * generated from wolfssl version.h */ -#include +/* wolfssl_version.h.in +* +* Copyright (C) 2006-2014 wolfSSL Inc. +* +* This file is part of wolfSSL. (formerly known as CyaSSL) +* +* 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-1301, USA +*/ + + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#define LIBWOLFSSL_VERSION_STRING "3.3.0" +#define LIBWOLFSSL_VERSION_HEX 0x03003000 + +#ifdef __cplusplus +} +#endif + diff --git a/wolfssl/version.h b/wolfssl/version.h index f3b85d1c4..86300d5bc 100644 --- a/wolfssl/version.h +++ b/wolfssl/version.h @@ -1,4 +1,4 @@ -/* cyassl_version.h.in +/* wolfssl_version.h.in * * Copyright (C) 2006-2014 wolfSSL Inc. * diff --git a/wolfssl/version.h.in b/wolfssl/version.h.in index 1d2b538b6..458117130 100644 --- a/wolfssl/version.h.in +++ b/wolfssl/version.h.in @@ -1,4 +1,4 @@ -/* cyassl_version.h.in +/* wolfssl_version.h.in * * Copyright (C) 2006-2014 wolfSSL Inc. *