aboutsummaryrefslogtreecommitdiffstats
path: root/include/openssl/ossl_typ.h
Commit message (Collapse)AuthorAgeFilesLines
* include/openssl: don't include <windows.h> in public headers.Andy Polyakov2016-07-081-1/+2
| | | | | | | | | | | If application uses any of Windows-specific interfaces, make it application developer's respondibility to include <windows.h>. Rationale is that <windows.h> is quite "toxic" and is sensitive to inclusion order (most notably in relation to <winsock2.h>). It's only natural to give complete control to the application developer. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Copyright consolidation 03/10Rich Salz2016-05-171-51/+6
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Make many X509_xxx types opaque.Rich Salz2016-04-151-0/+6
| | | | | | | | | Make X509_OBJECT, X509_STORE_CTX, X509_STORE, X509_LOOKUP, and X509_LOOKUP_METHOD opaque. Remove unused X509_CERT_FILE_CTX Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* Add SSL_DANE typedef for consistency.Rich Salz2016-04-081-0/+1
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* moved structure bio_buf_mem_st from headers to bss_mem.cKirill Marinushkin2016-04-021-1/+0
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Optimized BIO mem read - without reallocationKirill Marinushkin2016-04-021-0/+1
| | | | | | | | | | | | Currently on every BIO mem read operation the remaining data is reallocated. This commit solves the issue. BIO mem structure includes additional pointer to the read position. On every read the pointer moves instead of reallocating the memory for the remaining data. Reallocation accures before write and some ioctl operations, if the read pointer doesn't point on the beginning of the buffer. Also the flag is added to rewind the read pointer without losing the data. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* CT policy validationRob Percival2016-03-011-0/+1
| | | | | | | | Specifies a callback that will, in the future, be used by the SSL code to decide whether to abort a connection on Certificate Transparency grounds. Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Verify SCT signaturesRob Percival2016-03-011-0/+3
| | | | | | | Tests included in future commit, which adds CT policy validation. Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Moves SCT struct typedef into ossl_typ.hRob Percival2016-02-261-0/+2
| | | | | Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Hide OPENSSL_INIT_SETTINGS.Rich Salz2016-02-111-0/+1
| | | | | Make OPENSSL_INIT_SETTINGS an opaque structure. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove store.Rich Salz2016-02-101-3/+0
| | | | | | | Rebased and merged by me, with Ben's approval. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Ben Laurie <ben@openssl.org>
* Move more BN internals to bn_lcl.hRich Salz2016-01-301-0/+1
| | | | | | | | There was an unused macro in ssl_locl.h that used an internal type, so I removed it. Move bio_st from bio.h to ossl_type.h Reviewed-by: Andy Polyakov <appro@openssl.org>
* For stro[ui]max require both C99 and UINTMAX_MAX/INTMAX_MAXViktor Dukhovni2016-01-131-2/+2
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove spurious ;Richard Levitte2016-01-131-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* VMS C doesn't provide intmax_t/uinmax_t, use our ownRichard Levitte2016-01-131-1/+2
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* For stroimax need C99 inttypes.hViktor Dukhovni2016-01-131-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Maximize time_t when intmax_t is availableViktor Dukhovni2016-01-121-0/+16
| | | | | | | Well, I'm not actually changing time_t, just changing how time_t valued opt values are converted from string to time_t. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Make EVP_ENCODE_CTX opaqueRichard Levitte2015-12-111-0/+2
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Move the definitions of EC_KEY and EC_KEY_METHOD to ossl_typ.hRichard Levitte2015-12-091-0/+3
| | | | | | | | Most of all, that has inclusion of openssl/engine.h work even if EC has been disabled. This is the same as has been done for DH, DSA, RSA and more... Reviewed-by: Stephen Henson <steve@openssl.org>
* remove ECDSA_METHOD typedefDr. Stephen Henson2015-12-091-2/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* remove ECDH_METHOD typedefDr. Stephen Henson2015-12-091-1/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Make the definition of HMAC_CTX opaqueRichard Levitte2015-12-071-0/+2
| | | | | | | This moves the definition to crypto/hmac/hmac_lcl.h. Constructor and destructor added, and the typedef moved to include/openssl/ossl_typ.h. Reviewed-by: Rich Salz <rsalz@openssl.org>
* ex_data part 2: doc fixes and CRYPTO_free_ex_index.Rich Salz2015-12-011-7/+0
| | | | | | | | | | Add CRYPTO_free_ex_index (for shared libraries) Unify and complete the documentation for all "ex_data" API's and objects. Replace xxx_get_ex_new_index functions with a macro. Added an exdata test. Renamed the ex_data internal datatypes. Reviewed-by: Matt Caswell <matt@openssl.org>
* RT3948: Some structs have confusing names.Nicholas Cooper2015-09-281-2/+2
| | | | | Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
* Make COMP_CTX and COMP_METHOD opaqueRich Salz2015-05-121-1/+4
| | | | | | | | | | | | | Since COMP_METHOD is now defined in comp_lcl.h, it is no longer possible to create new TLS compression methods without using the OpenSSL source. Only ZLIB is supported by default. Also, since the types are opaque, #ifdef guards to use "char *" instead of the real type aren't necessary. The changes are actually minor. Adding missing copyright to some files makes the diff misleadingly big. Reviewed-by: Matt Caswell <matt@openssl.org>
* ERR_ cleanupRich Salz2015-04-281-2/+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>
* Stop symlinking, move files to intended directoryRichard Levitte2015-03-311-0/+207
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>