Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
da424147c9 | ||
![]() |
61ad89df15 | ||
![]() |
b5002ca5ac | ||
![]() |
332b03c8b7 | ||
![]() |
83e3f22710 | ||
![]() |
b3f22d85e5 | ||
![]() |
ab1de85a42 | ||
![]() |
cd16a21cab | ||
![]() |
9caf754a59 | ||
![]() |
2f2f08e60c |
@@ -6,6 +6,21 @@ project (LibreSSL)
|
|||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
file(READ ${CMAKE_SOURCE_DIR}/ssl/VERSION SSL_VERSION)
|
||||||
|
string(STRIP ${SSL_VERSION} SSL_VERSION)
|
||||||
|
string(REPLACE ":" "." SSL_VERSION ${SSL_VERSION})
|
||||||
|
string(REGEX REPLACE "\\..*" "" SSL_MAJOR_VERSION ${SSL_VERSION})
|
||||||
|
|
||||||
|
file(READ ${CMAKE_SOURCE_DIR}/crypto/VERSION CRYPTO_VERSION)
|
||||||
|
string(STRIP ${CRYPTO_VERSION} CRYPTO_VERSION)
|
||||||
|
string(REPLACE ":" "." CRYPTO_VERSION ${CRYPTO_VERSION})
|
||||||
|
string(REGEX REPLACE "\\..*" "" CRYPTO_MAJOR_VERSION ${CRYPTO_VERSION})
|
||||||
|
|
||||||
|
file(READ ${CMAKE_SOURCE_DIR}/tls/VERSION TLS_VERSION)
|
||||||
|
string(STRIP ${TLS_VERSION} TLS_VERSION)
|
||||||
|
string(REPLACE ":" "." TLS_VERSION ${TLS_VERSION})
|
||||||
|
string(REGEX REPLACE "\\..*" "" TLS_MAJOR_VERSION ${TLS_VERSION})
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
||||||
add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__)
|
add_definitions(-DHAVE_ATTRIBUTE__BOUNDED__)
|
||||||
endif()
|
endif()
|
||||||
@@ -147,6 +162,8 @@ add_subdirectory(crypto)
|
|||||||
add_subdirectory(ssl)
|
add_subdirectory(ssl)
|
||||||
add_subdirectory(apps)
|
add_subdirectory(apps)
|
||||||
add_subdirectory(tls)
|
add_subdirectory(tls)
|
||||||
|
add_subdirectory(include)
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
add_subdirectory(man)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
14
ChangeLog
14
ChangeLog
@@ -28,6 +28,20 @@ history is also available from Git.
|
|||||||
|
|
||||||
LibreSSL Portable Release Notes:
|
LibreSSL Portable Release Notes:
|
||||||
|
|
||||||
|
2.2.3 - Bug fixes, build enhancements
|
||||||
|
|
||||||
|
* LibreSSL 2.2.2 incorrectly handles ClientHello messages that do not
|
||||||
|
include TLS extensions, resulting in such handshakes being aborted.
|
||||||
|
This release corrects the handling of such messages. Thanks to
|
||||||
|
Ligushka from github for reporting the issue.
|
||||||
|
|
||||||
|
* Added install target for cmake builds. Thanks to TheNietsnie from
|
||||||
|
github.
|
||||||
|
|
||||||
|
* Updated pkgconfig files to correctly report the release version
|
||||||
|
number, not the individual library ABI version numbers. Thanks to
|
||||||
|
Jan Engelhardt for reporting the issue.
|
||||||
|
|
||||||
2.2.2 - More TLS parser rework, bug fixes, expanded portable build support
|
2.2.2 - More TLS parser rework, bug fixes, expanded portable build support
|
||||||
|
|
||||||
* Switched 'openssl dhparam' default from 512 to 2048 bits
|
* Switched 'openssl dhparam' default from 512 to 2048 bits
|
||||||
|
@@ -1 +1 @@
|
|||||||
master
|
OPENBSD_5_8
|
||||||
|
@@ -62,7 +62,7 @@ If you have checked this source using Git, follow these initial steps to
|
|||||||
prepare the source tree for building:
|
prepare the source tree for building:
|
||||||
|
|
||||||
1. Ensure you have the following packages installed:
|
1. Ensure you have the following packages installed:
|
||||||
automake, autoconf, bash, git, libtool, perl, pod2man
|
automake, autoconf, git, libtool, perl, pod2man
|
||||||
2. Run './autogen.sh' to prepare the source tree for building or
|
2. Run './autogen.sh' to prepare the source tree for building or
|
||||||
run './dist.sh' to prepare a tarball.
|
run './dist.sh' to prepare a tarball.
|
||||||
|
|
||||||
|
@@ -77,3 +77,5 @@ endif()
|
|||||||
|
|
||||||
add_executable(openssl ${OPENSSL_SRC})
|
add_executable(openssl ${OPENSSL_SRC})
|
||||||
target_link_libraries(openssl ${OPENSSL_LIBS})
|
target_link_libraries(openssl ${OPENSSL_LIBS})
|
||||||
|
|
||||||
|
install(TARGETS openssl DESTINATION bin)
|
||||||
|
@@ -638,4 +638,12 @@ if(NOT HAVE_TIMINGSAFE_MEMCMP)
|
|||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_memcmp.c)
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/timingsafe_memcmp.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(crypto ${CRYPTO_SRC})
|
add_library(crypto-objects OBJECT ${CRYPTO_SRC})
|
||||||
|
set_property(TARGET crypto-objects PROPERTY POSITION_INDEPENDENT_CODE 1)
|
||||||
|
add_library(crypto STATIC $<TARGET_OBJECTS:crypto-objects>)
|
||||||
|
add_library(crypto-shared SHARED $<TARGET_OBJECTS:crypto-objects>)
|
||||||
|
set_target_properties(crypto-shared PROPERTIES OUTPUT_NAME crypto)
|
||||||
|
set_target_properties(crypto-shared PROPERTIES VERSION ${CRYPTO_VERSION} SOVERSION ${CRYPTO_MAJOR_VERSION})
|
||||||
|
install(TARGETS crypto crypto-shared DESTINATION lib)
|
||||||
|
|
||||||
|
|
||||||
|
5
include/CMakeLists.txt
Normal file
5
include/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
install(DIRECTORY .
|
||||||
|
DESTINATION include
|
||||||
|
PATTERN "CMakeLists.txt" EXCLUDE
|
||||||
|
PATTERN "compat" EXCLUDE
|
||||||
|
PATTERN "Makefile.*" EXCLUDE)
|
@@ -7,7 +7,7 @@ includedir=@includedir@
|
|||||||
|
|
||||||
Name: LibreSSL-libssl
|
Name: LibreSSL-libssl
|
||||||
Description: Secure Sockets Layer and cryptography libraries
|
Description: Secure Sockets Layer and cryptography libraries
|
||||||
Version: @LIBCRYPTO_VERSION@
|
Version: @VERSION@
|
||||||
Requires:
|
Requires:
|
||||||
Conflicts:
|
Conflicts:
|
||||||
Libs: -L${libdir} -lcrypto
|
Libs: -L${libdir} -lcrypto
|
||||||
|
@@ -7,7 +7,7 @@ includedir=@includedir@
|
|||||||
|
|
||||||
Name: LibreSSL-libssl
|
Name: LibreSSL-libssl
|
||||||
Description: Secure Sockets Layer and cryptography libraries
|
Description: Secure Sockets Layer and cryptography libraries
|
||||||
Version: @LIBSSL_VERSION@
|
Version: @VERSION@
|
||||||
Requires:
|
Requires:
|
||||||
Requires.private: libcrypto
|
Requires.private: libcrypto
|
||||||
Conflicts:
|
Conflicts:
|
||||||
|
@@ -7,7 +7,7 @@ includedir=@includedir@
|
|||||||
|
|
||||||
Name: LibreSSL-libtls
|
Name: LibreSSL-libtls
|
||||||
Description: Secure communications using the TLS socket protocol.
|
Description: Secure communications using the TLS socket protocol.
|
||||||
Version: @LIBTLS_VERSION@
|
Version: @VERSION@
|
||||||
Requires:
|
Requires:
|
||||||
Requires.private: libcrypto libssl
|
Requires.private: libcrypto libssl
|
||||||
Conflicts:
|
Conflicts:
|
||||||
|
9
man/CMakeLists.txt
Normal file
9
man/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
install(DIRECTORY .
|
||||||
|
DESTINATION share/man/man3
|
||||||
|
FILES_MATCHING PATTERN "*.3"
|
||||||
|
)
|
||||||
|
|
||||||
|
install(DIRECTORY .
|
||||||
|
DESTINATION share/man/man1
|
||||||
|
FILES_MATCHING PATTERN "*.1"
|
||||||
|
)
|
@@ -4,9 +4,8 @@ include_directories(
|
|||||||
../include/compat
|
../include/compat
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(
|
set(
|
||||||
ssl
|
SSL_SRC
|
||||||
|
|
||||||
bio_ssl.c
|
bio_ssl.c
|
||||||
bs_ber.c
|
bs_ber.c
|
||||||
bs_cbb.c
|
bs_cbb.c
|
||||||
@@ -51,3 +50,12 @@ add_library(
|
|||||||
t1_reneg.c
|
t1_reneg.c
|
||||||
t1_srvr.c
|
t1_srvr.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_library(ssl-objects OBJECT ${SSL_SRC})
|
||||||
|
set_property(TARGET ssl-objects PROPERTY POSITION_INDEPENDENT_CODE 1)
|
||||||
|
add_library(ssl STATIC $<TARGET_OBJECTS:ssl-objects>)
|
||||||
|
add_library(ssl-shared SHARED $<TARGET_OBJECTS:ssl-objects>)
|
||||||
|
set_target_properties(ssl-shared PROPERTIES OUTPUT_NAME ssl)
|
||||||
|
set_target_properties(ssl-shared PROPERTIES VERSION ${SSL_VERSION} SOVERSION ${SSL_MAJOR_VERSION})
|
||||||
|
|
||||||
|
install(TARGETS ssl ssl-shared DESTINATION lib)
|
||||||
|
@@ -19,4 +19,11 @@ if(NOT HAVE_STRCASECMP)
|
|||||||
set(TLS_SRC ${TLS_SRC} strsep.c)
|
set(TLS_SRC ${TLS_SRC} strsep.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(tls ${TLS_SRC})
|
add_library(tls-objects OBJECT ${TLS_SRC})
|
||||||
|
set_property(TARGET tls-objects PROPERTY POSITION_INDEPENDENT_CODE 1)
|
||||||
|
add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>)
|
||||||
|
add_library(tls-shared SHARED $<TARGET_OBJECTS:tls-objects>)
|
||||||
|
set_target_properties(tls-shared PROPERTIES OUTPUT_NAME tls)
|
||||||
|
set_target_properties(tls-shared PROPERTIES VERSION ${TLS_VERSION} SOVERSION ${TLS_MAJOR_VERSION})
|
||||||
|
|
||||||
|
install(TARGETS tls tls-shared DESTINATION lib)
|
||||||
|
38
update.sh
38
update.sh
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
openbsd_branch=`cat OPENBSD_BRANCH`
|
openbsd_branch=`cat OPENBSD_BRANCH`
|
||||||
@@ -28,17 +28,17 @@ libtls_src=$CWD/openbsd/src/lib/libtls
|
|||||||
openssl_app_src=$CWD/openbsd/src/usr.bin/openssl
|
openssl_app_src=$CWD/openbsd/src/usr.bin/openssl
|
||||||
|
|
||||||
# load library versions
|
# load library versions
|
||||||
source $libcrypto_src/crypto/shlib_version
|
. $libcrypto_src/crypto/shlib_version
|
||||||
libcrypto_version=$major:$minor:0
|
libcrypto_version=$major:$minor:0
|
||||||
echo "libcrypto version $libcrypto_version"
|
echo "libcrypto version $libcrypto_version"
|
||||||
echo $libcrypto_version > crypto/VERSION
|
echo $libcrypto_version > crypto/VERSION
|
||||||
|
|
||||||
source $libssl_src/ssl/shlib_version
|
. $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"
|
||||||
echo $libssl_version > ssl/VERSION
|
echo $libssl_version > ssl/VERSION
|
||||||
|
|
||||||
source $libtls_src/shlib_version
|
. $libtls_src/shlib_version
|
||||||
libtls_version=$major:$minor:0
|
libtls_version=$major:$minor:0
|
||||||
echo "libtls version $libtls_version"
|
echo "libtls version $libtls_version"
|
||||||
echo $libtls_version > tls/VERSION
|
echo $libtls_version > tls/VERSION
|
||||||
@@ -67,19 +67,19 @@ $CP $libtls_src/tls.h libtls-standalone/include
|
|||||||
|
|
||||||
for i in crypto/compat libtls-standalone/compat; do
|
for i in crypto/compat libtls-standalone/compat; do
|
||||||
$CP $libc_src/crypt/arc4random.c \
|
$CP $libc_src/crypt/arc4random.c \
|
||||||
$libc_src/crypt/chacha_private.h \
|
$libc_src/crypt/chacha_private.h \
|
||||||
$libc_src/string/explicit_bzero.c \
|
$libc_src/string/explicit_bzero.c \
|
||||||
$libc_src/stdlib/reallocarray.c \
|
$libc_src/stdlib/reallocarray.c \
|
||||||
$libc_src/string/strcasecmp.c \
|
$libc_src/string/strcasecmp.c \
|
||||||
$libc_src/string/strlcpy.c \
|
$libc_src/string/strlcpy.c \
|
||||||
$libc_src/string/strlcat.c \
|
$libc_src/string/strlcat.c \
|
||||||
$libc_src/string/strndup.c \
|
$libc_src/string/strndup.c \
|
||||||
$libc_src/string/strnlen.c \
|
$libc_src/string/strnlen.c \
|
||||||
$libc_src/string/timingsafe_bcmp.c \
|
$libc_src/string/timingsafe_bcmp.c \
|
||||||
$libc_src/string/timingsafe_memcmp.c \
|
$libc_src/string/timingsafe_memcmp.c \
|
||||||
$libcrypto_src/crypto/getentropy_*.c \
|
$libcrypto_src/crypto/getentropy_*.c \
|
||||||
$libcrypto_src/crypto/arc4random_*.h \
|
$libcrypto_src/crypto/arc4random_*.h \
|
||||||
$i
|
$i
|
||||||
done
|
done
|
||||||
|
|
||||||
$CP include/compat/stdlib.h \
|
$CP include/compat/stdlib.h \
|
||||||
@@ -143,7 +143,7 @@ $CP crypto/compat/ui_openssl_win.c crypto/ui
|
|||||||
asm_src=$libssl_src/src/crypto
|
asm_src=$libssl_src/src/crypto
|
||||||
gen_asm_stdout() {
|
gen_asm_stdout() {
|
||||||
perl $asm_src/$2 $1 > $3.tmp
|
perl $asm_src/$2 $1 > $3.tmp
|
||||||
[[ $1 == "elf" ]] && cat <<-EOF >> $3.tmp
|
[ $1 = "elf" ] && cat <<-EOF >> $3.tmp
|
||||||
#if defined(HAVE_GNU_STACK)
|
#if defined(HAVE_GNU_STACK)
|
||||||
.section .note.GNU-stack,"",%progbits
|
.section .note.GNU-stack,"",%progbits
|
||||||
#endif
|
#endif
|
||||||
@@ -152,7 +152,7 @@ gen_asm_stdout() {
|
|||||||
}
|
}
|
||||||
gen_asm() {
|
gen_asm() {
|
||||||
perl $asm_src/$2 $1 $3.tmp
|
perl $asm_src/$2 $1 $3.tmp
|
||||||
[[ $1 == "elf" ]] && cat <<-EOF >> $3.tmp
|
[ $1 = "elf" ] && cat <<-EOF >> $3.tmp
|
||||||
#if defined(HAVE_GNU_STACK)
|
#if defined(HAVE_GNU_STACK)
|
||||||
.section .note.GNU-stack,"",%progbits
|
.section .note.GNU-stack,"",%progbits
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user