Compare commits

...

5 Commits

Author SHA1 Message Date
Brent Cook
7356330f2c update to 2.0.6 2015-10-15 16:17:10 -05:00
Brent Cook
6f4f4e1f34 rebase on pull when updating the openbsd branch
this avoids inadvertent local merges
2014-08-08 07:33:23 -05:00
Brent Cook
5196a58dae conditionally build strnlen if needed.
it is only used by strndup

prodded by Sortie@
2014-08-04 10:44:56 -06:00
Bob Beck
eb8ed5a532 Crank version for next 2.0 2014-08-04 10:41:44 -06:00
Brent Cook
05f8996169 tie libressl branch to openbsd branch, bump ver.
Added OPENBSD_BRANCH to set what branch update.sh should checkout.
2014-07-31 22:06:14 -05:00
6 changed files with 18 additions and 9 deletions

1
OPENBSD_BRANCH Normal file
View File

@ -0,0 +1 @@
OPENBSD_5_6

View File

@ -1 +1 @@
2.1.0 2.0.6

View File

@ -72,6 +72,11 @@ AC_CHECK_FUNC(strndup,
AC_DEFINE(NO_STRNDUP) AC_DEFINE(NO_STRNDUP)
AM_CONDITIONAL(NO_STRNDUP, true)) AM_CONDITIONAL(NO_STRNDUP, true))
AC_CHECK_FUNC(strnlen,
AM_CONDITIONAL(NO_STRNLEN, false),
AC_DEFINE(NO_STRNLEN)
AM_CONDITIONAL(NO_STRNLEN, true))
AC_CHECK_FUNC(asprintf, AC_CHECK_FUNC(asprintf,
AM_CONDITIONAL(NO_ASPRINTF, false), AM_CONDITIONAL(NO_ASPRINTF, false),
AC_DEFINE(NO_ASPRINTF) AC_DEFINE(NO_ASPRINTF)

View File

@ -35,8 +35,10 @@ endif
if NO_STRNDUP if NO_STRNDUP
libcompat_la_SOURCES += compat/strndup.c libcompat_la_SOURCES += compat/strndup.c
if NO_STRNLEN
libcompat_la_SOURCES += compat/strnlen.c libcompat_la_SOURCES += compat/strnlen.c
endif endif
endif
if NO_ASPRINTF if NO_ASPRINTF
libcompat_la_SOURCES += compat/bsd-asprintf.c libcompat_la_SOURCES += compat/bsd-asprintf.c

View File

@ -22,8 +22,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
#ifdef NO_STRNDUP #ifdef NO_STRNDUP
char * strndup(const char *str, size_t maxlen); char * strndup(const char *str, size_t maxlen);
#ifdef NO_STRNLEN
size_t strnlen(const char *str, size_t maxlen); size_t strnlen(const char *str, size_t maxlen);
#endif #endif
#endif
#ifdef NO_EXPLICIT_BZERO #ifdef NO_EXPLICIT_BZERO
void explicit_bzero(void *, size_t); void explicit_bzero(void *, size_t);

View File

@ -1,18 +1,19 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
# resync this library with the upstream project, remove old submodule dirs openbsd_branch=`cat OPENBSD_BRANCH`
if [ -d openbsd ]; then libressl_version=`cat VERSION`
(cd openbsd
git checkout master if [ ! -d openbsd ]; then
git pull)
else
if [ -z "$LIBRESSL_GIT" ]; then if [ -z "$LIBRESSL_GIT" ]; then
git clone https://github.com/libressl-portable/openbsd.git git clone https://github.com/libressl-portable/openbsd.git
else else
git clone $LIBRESSL_GIT/openbsd git clone $LIBRESSL_GIT/openbsd
fi fi
fi fi
(cd openbsd
git checkout $openbsd_branch
git pull --rebase)
dir=`pwd` dir=`pwd`
libssl_src=$dir/openbsd/src/lib/libssl libssl_src=$dir/openbsd/src/lib/libssl
@ -23,8 +24,6 @@ libcrypto_src=$dir/openbsd/src/lib/libcrypto
openssl_cmd_src=$dir/openbsd/src/usr.sbin/openssl openssl_cmd_src=$dir/openbsd/src/usr.sbin/openssl
libcrypto_regress=$dir/openbsd/src/regress/lib/libcrypto libcrypto_regress=$dir/openbsd/src/regress/lib/libcrypto
libressl_version=`cat VERSION`
source $libssl_src/ssl/shlib_version source $libssl_src/ssl/shlib_version
libssl_version=$major:$minor:0 libssl_version=$major:$minor:0
echo libssl version $libssl_version echo libssl version $libssl_version