Compare commits
5 Commits
main
...
OPENBSD_5_
Author | SHA1 | Date | |
---|---|---|---|
|
7356330f2c | ||
|
6f4f4e1f34 | ||
|
5196a58dae | ||
|
eb8ed5a532 | ||
|
05f8996169 |
1
OPENBSD_BRANCH
Normal file
1
OPENBSD_BRANCH
Normal file
@ -0,0 +1 @@
|
||||
OPENBSD_5_6
|
@ -72,6 +72,11 @@ AC_CHECK_FUNC(strndup,
|
||||
AC_DEFINE(NO_STRNDUP)
|
||||
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,
|
||||
AM_CONDITIONAL(NO_ASPRINTF, false),
|
||||
AC_DEFINE(NO_ASPRINTF)
|
||||
|
@ -35,8 +35,10 @@ endif
|
||||
|
||||
if NO_STRNDUP
|
||||
libcompat_la_SOURCES += compat/strndup.c
|
||||
if NO_STRNLEN
|
||||
libcompat_la_SOURCES += compat/strnlen.c
|
||||
endif
|
||||
endif
|
||||
|
||||
if NO_ASPRINTF
|
||||
libcompat_la_SOURCES += compat/bsd-asprintf.c
|
||||
|
@ -22,8 +22,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
|
||||
|
||||
#ifdef NO_STRNDUP
|
||||
char * strndup(const char *str, size_t maxlen);
|
||||
#ifdef NO_STRNLEN
|
||||
size_t strnlen(const char *str, size_t maxlen);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef NO_EXPLICIT_BZERO
|
||||
void explicit_bzero(void *, size_t);
|
||||
|
15
update.sh
15
update.sh
@ -1,18 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# resync this library with the upstream project, remove old submodule dirs
|
||||
if [ -d openbsd ]; then
|
||||
(cd openbsd
|
||||
git checkout master
|
||||
git pull)
|
||||
else
|
||||
openbsd_branch=`cat OPENBSD_BRANCH`
|
||||
libressl_version=`cat VERSION`
|
||||
|
||||
if [ ! -d openbsd ]; then
|
||||
if [ -z "$LIBRESSL_GIT" ]; then
|
||||
git clone https://github.com/libressl-portable/openbsd.git
|
||||
else
|
||||
git clone $LIBRESSL_GIT/openbsd
|
||||
fi
|
||||
fi
|
||||
(cd openbsd
|
||||
git checkout $openbsd_branch
|
||||
git pull --rebase)
|
||||
|
||||
dir=`pwd`
|
||||
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
|
||||
libcrypto_regress=$dir/openbsd/src/regress/lib/libcrypto
|
||||
|
||||
libressl_version=`cat VERSION`
|
||||
|
||||
source $libssl_src/ssl/shlib_version
|
||||
libssl_version=$major:$minor:0
|
||||
echo libssl version $libssl_version
|
||||
|
Loading…
Reference in New Issue
Block a user