aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Sanity check EVP_CTRL_AEAD_TLS_AADMatt Caswell2015-04-301-0/+3
| | | | | | | | | | The various implementations of EVP_CTRL_AEAD_TLS_AAD expect a buffer of at least 13 bytes long. Add sanity checks to ensure that the length is at least that. Also add a new constant (EVP_AEAD_TLS1_AAD_LEN) to evp.h to represent this length. Thanks to Kevin Wojtysiak (Int3 Solutions) and Paramjot Oberoi (Int3 Solutions) for reporting this issue. Reviewed-by: Andy Polyakov <appro@openssl.org>
* free cleanup 12Rich Salz2015-04-301-1/+1
| | | | | | | | | Don't check for NULL before calling free function. This gets: NAME_CONSTRAINTS_free GENERAL_SUBTREE_free ECDSA_METHOD_free JPAKE_CTX_free OCSP_REQ_CTX_free SCT_free SRP_VBASE_free SRP_gN_free SRP_user_pwd_free TXT_DB_free Reviewed-by: Richard Levitte <levitte@openssl.org>
* free cleanup almost the finaleRich Salz2015-04-301-1/+2
| | | | | | | | | | Add OPENSSL_clear_free which merges cleanse and free. (Names was picked to be similar to BN_clear_free, etc.) Removed OPENSSL_freeFunc macro. Fixed the small simple ones that are left: CRYPTO_free CRYPTO_free_locked OPENSSL_free_locked Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove redundant includes from dtls1.hMatt Caswell2015-04-301-19/+0
| | | | | | | | | There were a set of includes in dtls1.h which are now redundant due to the libssl opaque work. This commit removes those includes, which also has the effect of resolving one issue preventing building on windows (i.e. the include of winsock.h) Reviewed-by: Andy Polyakov <appro@openssl.org>
* ERR_ cleanupRich Salz2015-04-283-17/+0
| | | | | | | | | | | | Remove ERR_[gs]et_implementation as they were not undocumented and useless (the data structure was opaque). Halve the number of lock/unlock calls in almost all ERR_ functions by letting the caller of get_hash or int_thread_set able to lock. Very useful when looping, such as adding errors, or when getting the hash and immediately doing a lookup on it. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Error checking and memory leak fixes in NISTZ256.Emilia Kasper2015-04-271-0/+1
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* SSL_CIPHER lookup functions.Dr. Stephen Henson2015-04-221-0/+2
| | | | | | | | | | | | | Add tables to convert between SSL_CIPHER fields and indices for ciphers and MACs. Reorganise ssl_ciph.c to use tables to lookup values and load them. New functions SSL_CIPHER_get_cipher_nid and SSL_CIPHER_get_digest_nid. Add documentation. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Repair EAP-FAST session resumptionEmilia Kasper2015-04-211-1/+2
| | | | | | | | | | | | | | | | | | | EAP-FAST session resumption relies on handshake message lookahead to determine server intentions. Commits 980bc1ec6114f5511b20c2e6ca741e61a39b99d6 and 7b3ba508af5c86afe43e28174aa3c53a0a24f4d9 removed the lookahead so broke session resumption. This change partially reverts the commits and brings the lookahead back in reduced capacity for TLS + EAP-FAST only. Since EAP-FAST does not support regular session tickets, the lookahead now only checks for a Finished message. Regular handshakes are unaffected by this change. Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove code for deleted function from ssl.hEmilia Kasper2015-04-161-1/+0
| | | | | | ssl_cert_inst was removed in 2c3823491d8812560922a58677e3ad2db4b2ec8d Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* remove asn1_mac.hDr. Stephen Henson2015-04-031-579/+0
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove old ASN.1 functions.Dr. Stephen Henson2015-04-031-38/+0
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add macro to implement static encode functions.Dr. Stephen Henson2015-04-031-0/+13
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Configure: android-arm facelift.Andy Polyakov2015-04-021-0/+3
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Stop symlinking, move files to intended directoryRichard Levitte2015-03-3176-0/+36399
| | | | | | | | | | | | | Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove all .cvsignore filesRich Salz2014-11-281-3/+0
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Add emacs cache files to .cvsignore.Richard Levitte2005-04-111-0/+2
|
* Add include dirRalf S. Engelschall1998-12-231-0/+1