Ivan Nikulin
9bd7645701
Remove ossl110 gate
2020-11-11 14:08:37 +00:00
Ivan Nikulin
7d9a77e916
Remove ossl102 gate
2020-11-11 13:34:48 +00:00
Ivan Nikulin
61b600331b
Remove ossl101 gate
2020-11-11 13:21:33 +00:00
Ivan Nikulin
a4c8a21997
Remove ossl110f config gate
2020-11-11 13:15:02 +00:00
Ivan Nikulin
96d14f9e4b
Remove ossl111 feature gate
2020-11-11 13:09:33 +00:00
Ivan Nikulin
8e54554cf8
Remove unimplemented OSSL111 stuff
2020-11-11 00:43:27 +00:00
Ivan Nikulin
1ae3ef578f
Remove LibreSSL-specific code
2020-11-11 00:15:24 +00:00
Ivan Nikulin
a9ea9b26e7
Revive tests
2020-11-11 00:09:31 +00:00
Ivan Nikulin
a6f5beeb33
Remove decrepit and unavaliable API and fix signatures
2020-11-10 00:18:28 +00:00
Stefan Bühler
df0ad695a1
Update some X509_CRL bindings for libressl281
2020-09-28 13:44:22 +02:00
Stefan Bühler
f83ed2e074
Add some X509_REVOKED bindings, make extensions field public
2020-09-28 13:44:22 +02:00
Stefan Bühler
0076028eda
Add more extension bindings for STACK_OF(X509_EXTENSION)
2020-09-28 13:44:22 +02:00
Stefan Bühler
4707e74420
Fix ASN1_OCTET_STRING in bindings
2020-09-28 11:44:00 +02:00
Stefan Bühler
919874a2a5
Add AUTHORITY_KEYID struct
2020-09-26 19:41:31 +02:00
Stefan Bühler
85d78b29af
Add bindings and consts for x509 extensions flags and (extended) key usage
2020-09-26 19:41:31 +02:00
Stefan Bühler
4f3a71ba04
Add bindings to access x509 extensions in various types
2020-09-26 18:37:28 +02:00
Stefan Bühler
0b296921ff
Add a few bindings for X509_REVOKED
2020-09-26 18:37:02 +02:00
Stefan Bühler
0d0e3be39f
Add more bindings for X509_CRL
2020-09-26 18:28:49 +02:00
Josh Robson Chase
6eabcf2ca0
Expose the X509Revoked type directly
2020-09-26 17:27:08 +02:00
Josh Robson Chase
3a4f96a73d
Add basic bindings to the API CRLs
2020-09-26 17:27:07 +02:00
Hidekatsu Izuno
c4cbf496c7
Add ecx support
2020-09-13 23:48:53 +09:00
KOVACS Krisztian
8bfdc7bd98
Add constructor for creating Asn1Object from a textual OID representation
...
This is effectively a wrapper for OBJ_txt2obj.
2020-09-03 16:42:16 +02:00
Murat
96575db11d
Add from_der and to_der to PKCS7
2020-08-31 20:23:10 +02:00
marcelbuesing
1cffc2b575
Expose subject_name_hash
2020-08-11 11:47:28 +02:00
Diogo Sousa
2602f49243
Make openssl not cleanup at exit, which can lead to race conditions on openssl >= 1.1.1b.
...
Fixes #1293 .
2020-07-28 12:00:44 +01:00
Steven Fackler
95a813b646
Merge pull request #1287 from henrydcase/hdc/pke
...
adding PKE interface
2020-06-05 18:27:57 -04:00
Leo
7d129b6413
Add PEM/DER serialization for EC public key
2020-06-05 18:58:59 +08:00
Kris Kwiatkowski
5be8a5e9f4
adding PKE interface
...
The patch adds PKE interface functions, namely:
EVP_PKEY_encrypt_init
EVP_PKEY_encrypt
EVP_PKEY_decrypt_init
EVP_PKEY_decrypt
Additionally it adds functions for getting and
setting public and private key to/from byte array.
EVP_PKEY_get_raw_public_key
EVP_PKEY_new_raw_public_key
EVP_PKEY_get_raw_private_key
EVP_PKEY_new_raw_private_key
Finally it also adds a function for getting NID
of a scheme by it's name (SN).
2020-06-03 23:46:32 +00:00
Steven Fackler
e851708589
Add SslRef::set_mtu
2020-05-25 17:22:24 -07:00
Steven Fackler
f401ba2ec1
Run clippy
2020-05-24 16:31:04 -07:00
Steven Fackler
406031991f
Run rustfmt on github actions
2020-05-24 10:39:01 -07:00
Henrik Böving
f34e9b993d
ocb is only available in openssl 1.1 and later
2020-05-09 01:02:34 +02:00
Henrik Böving
963e3994a5
Add support for AES-OCB mode
2020-05-08 23:16:13 +02:00
Steven Fackler
40e66bab6b
Add SslContextBuilder::set_cert_store
2020-04-07 17:05:38 -07:00
Steven Fackler
2cbc436b8b
Merge pull request #1248 from coolreader18/ssl-functions
...
Add functions for SSL{_CTX}_get_verify_mode and SSL_is_init_finished
2020-03-26 20:52:42 -04:00
Steven Fackler
ef369f827e
Merge pull request #1249 from coolreader18/more-ssl-method
...
Add SslMethod::tls_{client,server}
2020-03-25 20:57:23 -04:00
Noah
354a984a7c
Add SslMethod::tls_{client,server}
2020-03-24 21:56:04 -05:00
Noah
1e9cc8426e
Add functions for SSL{_CTX}_get_verify_mode and SSL_is_init_finished
2020-03-24 15:32:39 -05:00
Noah
41162e27ab
Add a shim for X509_STORE_get0_objects and X509_OBJECT_free
2020-03-24 12:33:54 -05:00
Noah
5c6179ce07
Only have constants on < ossl110
2020-03-23 17:04:31 -05:00
Noah
59bff6de85
Skip X509_OBJECT_data systests
2020-03-23 17:04:30 -05:00
Noah
dfb3cb9579
Fix signedness issue
2020-03-23 10:17:02 -05:00
Noah
8cfb59b9ea
Add a way to get the certificates stored in an X509Store
2020-03-22 23:20:59 -05:00
Nipunn Koorapati
4898f60e52
Attach cfg[allow_deprecated] to methods w/ uninitialized functionality
...
Additionally - update usage of ONCE_INIT
2020-02-10 12:53:51 -08:00
Hiroki Noda
9189b67326
Add NO RENEGOTIATION option
...
SSL_OP_NO_RENEGOTIATION was added in OpenSSLv1.1.1 and backported to
v1.1.0h.
2020-01-28 04:07:38 +09:00
Hiroki Noda
78c1e2409d
Add EVP_EncryptInit_ex/EVP_EncryptFinish_ex, and the equivalently named
...
decrypt functions
Some functions including low level AES functions would be deprecated
in next OpenSSL version(3.0).
OpenSSL team says that application should use the high level EVP APIs,
so I added these functions.
See also:
https://github.com/openssl/openssl/pull/10580
https://github.com/openssl/openssl/pull/10740
2020-01-25 00:49:47 +09:00
Hyeonu Park
4d5e5e1787
add SslStreamBuilder::set_dtls_mtu_size(usize)
2019-12-29 04:17:00 +09:00
oberien
9f4c489588
Use d2i_PKCS8_PRIV_KEY_INFO instead of *_bio
2019-12-04 02:02:33 +01:00
oberien
fc529b6c81
Pkey::private_key_from_pkcs8 free p8inf
2019-12-03 03:05:05 +01:00
oberien
4b2d46c252
Fix pointer constness correctly
2019-12-01 03:38:31 +01:00