diff options
| author | Steven Fackler <[email protected]> | 2017-01-03 14:56:00 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-01-03 14:56:00 -0800 |
| commit | 6291407b177dfb8bee0b50974cad57c98da110f8 (patch) | |
| tree | 62d8cb05226414c303c38a2f27ecfafe09604f92 /openssl-sys/src | |
| parent | Merge pull request #545 from Philipp91/patch-2 (diff) | |
| download | rust-openssl-6291407b177dfb8bee0b50974cad57c98da110f8.tar.xz rust-openssl-6291407b177dfb8bee0b50974cad57c98da110f8.zip | |
Add X509::stack_from_pem
Implementation is a clone of SSL_CTX_use_certificate_chain_file
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 9b733402..80cfc47e 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -126,6 +126,9 @@ pub const BIO_FLAGS_SHOULD_RETRY: c_int = 0x08; pub const CRYPTO_LOCK: c_int = 1; +pub const ERR_LIB_PEM: c_int = 9; +pub const PEM_R_NO_START_LINE: c_int = 108; + pub const EVP_MAX_MD_SIZE: c_uint = 64; pub const EVP_PKEY_RSA: c_int = NID_rsaEncryption; pub const EVP_PKEY_HMAC: c_int = NID_hmac; @@ -1429,10 +1432,12 @@ extern { pub fn EC_POINT_cmp(group: *const EC_GROUP, a: *const EC_POINT, b: *const EC_POINT, ctx: *mut BN_CTX) -> c_int; pub fn EC_POINT_free(point: *mut EC_POINT); + pub fn ERR_peek_last_error() -> c_ulong; pub fn ERR_get_error() -> c_ulong; pub fn ERR_lib_error_string(err: c_ulong) -> *const c_char; pub fn ERR_func_error_string(err: c_ulong) -> *const c_char; pub fn ERR_reason_error_string(err: c_ulong) -> *const c_char; + pub fn ERR_clear_error(); pub fn EVP_md5() -> *const EVP_MD; pub fn EVP_ripemd160() -> *const EVP_MD; |