Compare commits
10 Commits
main
...
OPENBSD_6_
Author | SHA1 | Date | |
---|---|---|---|
![]() |
90898c9686 | ||
![]() |
339074b924 | ||
![]() |
0a583bd21d | ||
![]() |
190bd346e7 | ||
![]() |
ac9a73f695 | ||
![]() |
71d9fd9709 | ||
![]() |
6cb4aa08ab | ||
![]() |
68a99284c3 | ||
![]() |
fe8a52a0d9 | ||
![]() |
727aeabdd8 |
@ -107,26 +107,23 @@ if(MSVC)
|
|||||||
message(STATUS "Using [${CMAKE_C_COMPILER_ID}] compiler")
|
message(STATUS "Using [${CMAKE_C_COMPILER_ID}] compiler")
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||||
set(MSVC_DISABLED_WARNINGS_LIST
|
set(MSVC_DISABLED_WARNINGS_LIST
|
||||||
"C4057" # C4057: 'initializing' : 'unsigned char *' differs in
|
"C4018" # 'expression' : signed/unsigned mismatch
|
||||||
# indirection to slightly different base types from 'char [2]'
|
"C4057" # 'operator' : 'identifier1' indirection to
|
||||||
"C4018" # '>=': signed/unsigned mismatch
|
# slightly different base types from 'identifier2'
|
||||||
"C4100" # 'exarg' : unreferenced formal parameter
|
"C4100" # 'identifier' : unreferenced formal parameter
|
||||||
"C4127" # conditional expression is constant
|
"C4127" # conditional expression is constant
|
||||||
"C4146" # unary minus operator applied to unsigned
|
"C4146" # unary minus operator applied to unsigned type,
|
||||||
# type, result still unsigned
|
# result still unsigned
|
||||||
"C4242" # 'function' : conversion from 'int' to 'uint8_t',
|
"C4244" # 'argument' : conversion from 'type1' to 'type2',
|
||||||
# possible loss of data
|
# possible loss of data
|
||||||
"C4244" # 'function' : conversion from 'int' to 'uint8_t',
|
"C4245" # 'conversion' : conversion from 'type1' to 'type2',
|
||||||
# possible loss of data
|
# signed/unsigned mismatch
|
||||||
"C4245" # 'initializing': conversion from 'long' to
|
"C4267" # 'var' : conversion from 'size_t' to 'type',
|
||||||
# 'unsigned long', signed/unsigned mismatch
|
# possible loss of data
|
||||||
"C4267" # conversion from 'size_t' to 'some type that is almost
|
"C4389" # 'operator' : signed/unsigned mismatch
|
||||||
# certainly safe to convert a size_t to'.
|
|
||||||
"C4389" # '!=': signed/unsigned mismatch
|
|
||||||
"C4706" # assignment within conditional expression
|
"C4706" # assignment within conditional expression
|
||||||
"C4820" # 'bytes' bytes padding added after construct 'member_name'
|
"C4996" # The POSIX name for this item is deprecated.
|
||||||
"C4996" # 'read': The POSIX name for this item is deprecated. Instead,
|
# Instead, use the ISO C and C++ conformant name
|
||||||
# use the ISO C++ conformant name: _read.
|
|
||||||
)
|
)
|
||||||
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
|
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
|
||||||
add_definitions(-D_CRT_SUPPRESS_RESTRICT)
|
add_definitions(-D_CRT_SUPPRESS_RESTRICT)
|
||||||
|
21
ChangeLog
21
ChangeLog
@ -28,6 +28,27 @@ history is also available from Git.
|
|||||||
|
|
||||||
LibreSSL Portable Release Notes:
|
LibreSSL Portable Release Notes:
|
||||||
|
|
||||||
|
2.6.4 - Bug fixes
|
||||||
|
|
||||||
|
* Make tls_config_parse_protocols() work correctly when passed a NULL
|
||||||
|
pointer for a protocol string. Issue found by semarie@, who also
|
||||||
|
provided the diff.
|
||||||
|
|
||||||
|
* Correct TLS extensions handling when no extensions are present.
|
||||||
|
If no TLS extensions are present in a client hello or server hello,
|
||||||
|
omit the entire extensions block, rather than including it with a
|
||||||
|
length of zero. Thanks to Eric Elena <eric at voguemerry dot com> for
|
||||||
|
providing packet captures and testing the fix.
|
||||||
|
|
||||||
|
* Fixed portable builds on older Android systems, and systems with out
|
||||||
|
IPV6_TCLASS support.
|
||||||
|
|
||||||
|
2.6.3 - OpenBSD 6.2 Release
|
||||||
|
|
||||||
|
* No core changes from LibreSSL 2.6.2
|
||||||
|
|
||||||
|
* Minor compatibility fixes in portable version.
|
||||||
|
|
||||||
2.6.2 - Bug fixes
|
2.6.2 - Bug fixes
|
||||||
|
|
||||||
* Provide a useful error with libtls if there are no OCSP URLs in a
|
* Provide a useful error with libtls if there are no OCSP URLs in a
|
||||||
|
@ -1 +1 @@
|
|||||||
master
|
OPENBSD_6_2
|
||||||
|
@ -88,5 +88,5 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
if(ENABLE_LIBRESSL_INSTALL)
|
if(ENABLE_LIBRESSL_INSTALL)
|
||||||
install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR})
|
install(FILES cert.pem openssl.cnf x509v3.cnf DESTINATION ${CONF_DIR})
|
||||||
install(DIRECTORY DESTINATION ${CONF_DIR}/cert)
|
install(DIRECTORY DESTINATION ${CONF_DIR}/certs)
|
||||||
endif(ENABLE_LIBRESSL_INSTALL)
|
endif(ENABLE_LIBRESSL_INSTALL)
|
||||||
|
@ -34,9 +34,9 @@ err(int eval, const char *fmt, ...)
|
|||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
fprintf(stderr, ": ");
|
fprintf(stderr, ": ");
|
||||||
}
|
}
|
||||||
|
va_end(ap);
|
||||||
fprintf(stderr, "%s\n", strerror(sverrno));
|
fprintf(stderr, "%s\n", strerror(sverrno));
|
||||||
exit(eval);
|
exit(eval);
|
||||||
va_end(ap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
@ -52,9 +52,9 @@ errx(int eval, const char *fmt, ...)
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (fmt != NULL)
|
if (fmt != NULL)
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
exit(eval);
|
exit(eval);
|
||||||
va_end(ap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
@ -68,8 +68,8 @@ warn(const char *fmt, ...)
|
|||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
fprintf(stderr, ": ");
|
fprintf(stderr, ": ");
|
||||||
}
|
}
|
||||||
fprintf(stderr, "%s\n", strerror(sverrno));
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
fprintf(stderr, "%s\n", strerror(sverrno));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
@ -80,8 +80,8 @@ warnx(const char *fmt, ...)
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (fmt != NULL)
|
if (fmt != NULL)
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
fprintf(stderr, "\n");
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,10 +2,23 @@ AC_DEFUN([CHECK_LIBC_COMPAT], [
|
|||||||
# Check for libc headers
|
# Check for libc headers
|
||||||
AC_CHECK_HEADERS([err.h readpassphrase.h])
|
AC_CHECK_HEADERS([err.h readpassphrase.h])
|
||||||
# Check for general libc functions
|
# Check for general libc functions
|
||||||
AC_CHECK_FUNCS([asprintf freezero getpagesize inet_ntop inet_pton memmem])
|
AC_CHECK_FUNCS([asprintf freezero inet_ntop inet_pton memmem])
|
||||||
AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray])
|
AC_CHECK_FUNCS([readpassphrase reallocarray recallocarray])
|
||||||
AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
|
AC_CHECK_FUNCS([strlcat strlcpy strndup strnlen strsep strtonum])
|
||||||
AC_CHECK_FUNCS([timegm _mkgmtime])
|
AC_CHECK_FUNCS([timegm _mkgmtime])
|
||||||
|
AC_CACHE_CHECK([for getpagesize], ac_cv_func_getpagesize, [
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||||
|
// Since Android NDK v16 getpagesize is defined as inline inside unistd.h
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
]], [[
|
||||||
|
getpagesize();
|
||||||
|
]])],
|
||||||
|
[ ac_cv_func_getpagesize="yes" ],
|
||||||
|
[ ac_cv_func_getpagesize="no"
|
||||||
|
])
|
||||||
|
])
|
||||||
AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
|
AM_CONDITIONAL([HAVE_ASPRINTF], [test "x$ac_cv_func_asprintf" = xyes])
|
||||||
AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes])
|
AM_CONDITIONAL([HAVE_FREEZERO], [test "x$ac_cv_func_freezero" = xyes])
|
||||||
AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes])
|
AM_CONDITIONAL([HAVE_GETPAGESIZE], [test "x$ac_cv_func_getpagesize" = xyes])
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
err(1, "set IPv6 traffic class");
|
err(1, "set IPv6 traffic class");
|
||||||
+#else
|
+#else
|
||||||
+ else if (af == AF_INET6) {
|
+ else if (af == AF_INET6) {
|
||||||
+ errno = ENOPROTOOPT
|
+ errno = ENOPROTOOPT;
|
||||||
+ err(1, "set IPv6 traffic class not supported");
|
+ err(1, "set IPv6 traffic class not supported");
|
||||||
+ }
|
+ }
|
||||||
+#endif
|
+#endif
|
||||||
|
@ -177,7 +177,6 @@ exptest_SOURCES = exptest.c
|
|||||||
# freenull
|
# freenull
|
||||||
TESTS += freenull
|
TESTS += freenull
|
||||||
check_PROGRAMS += freenull
|
check_PROGRAMS += freenull
|
||||||
freenull_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL
|
|
||||||
freenull_SOURCES = freenull.c
|
freenull_SOURCES = freenull.c
|
||||||
|
|
||||||
# gcm128test
|
# gcm128test
|
||||||
@ -359,7 +358,6 @@ timingsafe_SOURCES = timingsafe.c
|
|||||||
# tlsexttest
|
# tlsexttest
|
||||||
TESTS += tlsexttest
|
TESTS += tlsexttest
|
||||||
check_PROGRAMS += tlsexttest
|
check_PROGRAMS += tlsexttest
|
||||||
tlsexttest_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL
|
|
||||||
tlsexttest_SOURCES = tlsexttest.c
|
tlsexttest_SOURCES = tlsexttest.c
|
||||||
|
|
||||||
# tlstest
|
# tlstest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user