Merge pull request #1002 from vishwin/master

Support the rest of LibreSSL 2.8.x
This commit is contained in:
Steven Fackler 2018-10-01 08:27:59 -07:00 committed by GitHub
commit 0245eee724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View File

@ -109,6 +109,9 @@ libressl_250: &LIBRESSL_250
libressl_270: &LIBRESSL_280 libressl_270: &LIBRESSL_280
LIBRARY: libressl LIBRARY: libressl
VERSION: 2.8.0 VERSION: 2.8.0
libressl_281: &LIBRESSL_281
LIBRARY: libressl
VERSION: 2.8.1
x86_64: &X86_64 x86_64: &X86_64
TARGET: x86_64-unknown-linux-gnu TARGET: x86_64-unknown-linux-gnu
@ -197,6 +200,10 @@ jobs:
<<: *JOB <<: *JOB
environment: environment:
<<: [*LIBRESSL_280, *X86_64, *BASE] <<: [*LIBRESSL_280, *X86_64, *BASE]
x86_64-libressl-2.8.1:
<<: *JOB
environment:
<<: [*LIBRESSL_281, *X86_64, *BASE]
macos: macos:
<<: *MACOS_JOB <<: *MACOS_JOB
environment: environment:
@ -225,5 +232,6 @@ workflows:
- armhf-openssl-1.0.2 - armhf-openssl-1.0.2
- x86_64-libressl-2.5.0 - x86_64-libressl-2.5.0
- x86_64-libressl-2.8.0 - x86_64-libressl-2.8.0
- x86_64-libressl-2.8.1
- macos - macos
- macos-vendored - macos-vendored

View File

@ -19,6 +19,9 @@ pub fn get(openssl_version: Option<u64>, libressl_version: Option<u64>) -> Vec<&
if libressl_version >= 0x2_08_00_00_0 { if libressl_version >= 0x2_08_00_00_0 {
cfgs.push("libressl280"); cfgs.push("libressl280");
} }
if libressl_version >= 0x2_08_01_00_0 {
cfgs.push("libressl281");
}
} else { } else {
let openssl_version = openssl_version.unwrap(); let openssl_version = openssl_version.unwrap();

View File

@ -497,7 +497,8 @@ See rust-openssl README for more information:
(6, 2) => ('6', '2'), (6, 2) => ('6', '2'),
(6, _) => ('6', 'x'), (6, _) => ('6', 'x'),
(7, _) => ('7', 'x'), (7, _) => ('7', 'x'),
(8, 0) => ('8', 'x'), (8, 0) => ('8', '0'),
(8, 1) => ('8', '1'),
_ => version_error(), _ => version_error(),
}; };
@ -538,7 +539,7 @@ fn version_error() -> ! {
" "
This crate is only compatible with OpenSSL 1.0.1 through 1.1.1, or LibreSSL 2.5 This crate is only compatible with OpenSSL 1.0.1 through 1.1.1, or LibreSSL 2.5
through 2.7, but a different version of OpenSSL was found. The build is now aborting through 2.8.1, but a different version of OpenSSL was found. The build is now aborting
due to this version mismatch. due to this version mismatch.
" "

View File

@ -45,7 +45,7 @@ pub const V_OCSP_CERTSTATUS_UNKNOWN: c_int = 2;
pub enum OCSP_BASICRESP {} pub enum OCSP_BASICRESP {}
cfg_if! { cfg_if! {
if #[cfg(ossl110)] { if #[cfg(any(ossl110, libressl281))] {
extern "C" { extern "C" {
pub fn OCSP_cert_to_id( pub fn OCSP_cert_to_id(
dgst: *const EVP_MD, dgst: *const EVP_MD,