summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a NULL dereference in GENERAL_NAME_cmp()libressl-v3.2.3tb2020-12-081-1/+2
| | | | | | | | | | | | | | Comparing two GENERAL_NAME structures containing an EDIPARTYNAME can lead to a crash. This enables a denial of service attack for an attacker who can control both sides of the comparison. Issue reported to OpenSSL on Nov 9 by David Benjamin. OpenSSL shared the information with us on Dec 1st. Fix from Matt Caswell (OpenSSL) with a few small tweaks. ok jsing this is errata/6.8/008_asn1.patch.sig
* Restore function prototype for ASN1_dup, fixing usage on I32LP64 platforms.jeremy2018-11-301-1/+7
| | | | | | This prototype was removed inadvertantly in r1.50. OK jsing@
* Add const to the data argument of ASN1_set{,_int}_octetstring().tb2018-11-091-3/+3
| | | | | | From Ben L bobsayshilol () live ! co ! uk ok jsing
* Remove some function prototypes that should have been removed in thejsing2018-11-081-10/+2
| | | | | | previous clean up. Spotted by bcook@
* Remove a bunch of ancient and highly crufty ASN.1 related code fromjsing2018-10-241-218/+15
| | | | | | libcrypto (the "new" stuff replaced this back around 2000 or so...). ok tb@
* The 'in' argument of ASN1_STRING_to_UTF8() is now adorned with const.tb2018-05-191-2/+2
| | | | | tested in a bulk build by sthen ok jsing
* const for BIO_{new,set}() and most of the BIO_{f,s}_*() family oftb2018-05-011-2/+2
| | | | | | functions. ok beck, jsing
* remove whitespace before closing parenstb2018-04-251-5/+5
|
* Add const to functions in asn1/asn1.h as they did in OpenSSL.tb2018-04-251-36/+38
| | | | | | | BIO_f_asn1() will be taken care of later. Tested in a bulk by sthen ok bcook jca jsing
* Limit ASN.1 constructed types recursive definition depthinoguchi2018-03-291-1/+2
| | | | | | | | Fixes for CVE-2018-0739. Copied from commit below, and modified for adaption to our code. https://github.com/openssl/openssl/commit/9310d45087ae546e27e61ddf8f6367f29848220d ok bcook@ beck@ jsing@
* Provide ASN1_STRING_get0_data().jsing2018-02-141-2/+3
|
* Add ASN1_TIME_set_tm to set an asn1 from a struct tm *beck2017-05-061-1/+2
| | | | ok jsing@
* Place ASN_ITEM_{ptr,rptr,ref} and DECLARE_ASN1_ITEM under #ifndefjsing2016-12-301-2/+4
| | | | LIBRESSL_INTERNAL.
* Place the DECLARE_ASN1_* macros under #ifndef LIBRESSL_INTERNAL.jsing2016-12-271-4/+10
|
* Use correct version of previous macro expansion.jsing2016-12-271-5/+5
|
* Expand DECLARE_ASN1_FUNCTIONS_{fname,name} macros - no change tojsing2016-12-271-6/+22
| | | | preprocessor output, excluding line numbers and newlines.
* Remove all DECLARE_ASN1_SET_OF macro usage - since 2000 these have beenjsing2016-12-271-4/+1
| | | | | nothing but markers for utils/mkstack.pl... and we removed the code that generated more macros from these markers in 2014.
* Expand DECLARE_ASN1_ITEM macros - no change in preprocessor output.jsing2016-12-271-3/+3
|
* Expand DECLARE_ASN1_* macros. No change in preprocessor output, excludingjsing2016-12-271-20/+92
| | | | line numbering and new lines.
* make public ASN1_time_parse and ASN1_time_tm_cmp to replace former hiddenbeck2016-11-041-1/+4
| | | | | | functions.. document with a man page. bump majors on libtls, libssl, libcrypto ok jsing@ guenther@
* Put ASN1_dup() under #ifndef LIBRESSL_INTERNAL.jsing2015-10-131-5/+5
|
* Rip the guts out of another gibbering horror of a time comparison function, andbeck2015-10-081-2/+3
| | | | | mark it as #ifndef LIBRESSL_INTERNAL at least we don't use this. ok jsing@
* revert previous accidental commitbeck2015-10-081-3/+2
|
* Spelling in commentbeck2015-10-081-2/+3
|
* Place all of the ASN1 M_ macros under #ifndef LIBRESSL_INTERNAL.jsing2015-09-301-30/+37
|
* Fix a number of issues relating to algorithms in signatures, Mostlybeck2015-01-281-1/+2
| | | | | | from OpenSSL with a hint of boring and some things done here. Addresses CVE-2014-8275 for OpenSSL fully ok miod@ doug@
* tags as requested by miod and teduderaadt2014-06-121-1/+1
|
* Everything sane has stdio, and FILE *. we don't need ifdefs for this.beck2014-05-291-2/+0
| | | | ok to firebomb from tedu@
* We have shared global variables - unifdef OPENSSL_EXPORT_VAR_AS_FUNCTION.jsing2014-05-241-22/+0
| | | | ok miod@ beck@
* Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing2014-05-241-1/+3
| | | | | | | including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
* Expand OPENSSL_{GLOBAL,EXTERN} macros that I missed last time around,jsing2014-05-241-1/+1
| | | | | | since they are hiding in the #define forest. ok miod@
* KNF.jsing2014-05-221-138/+128
|
* No uses of UTF8_{getc,putc}() in ports, so remove them from the public header.guenther2014-05-221-3/+0
| | | | ok miod@
* Bring back ASN1_seq_pack(), ASN1_seq_unpack(), ASN1_pack_string() andmiod2014-05-121-0/+11
| | | | | | | | ASN1_unpack_string() from the NO_ASN1_OLD purge; turns out that some Ruby extensions still use them, unfortunately, so we need to give them some more time to catch up on ``recent'' interfaces. Riding on the libcrypto major bump.
* Unifdef -U OPENSSL_BUILD_SHLIBCRYPTO, since all it causes under Unix is tomiod2014-04-271-5/+0
| | | | redefine OPENSSL_EXTERN from `extern' to `extern'.
* Delete #if 0'd time related functions which are totally expired.deraadt2014-04-211-3/+0
| | | | No point even seeing these when we do the 2038 audit later on...
* tone down some XXXXX to not appear in greptedu2014-04-181-1/+1
|
* Put back i2d_ASN1_SET() and d2i_ASN1_SET() from the NO_ASN1_OLD prune, as theremiod2014-04-181-0/+9
| | | | | | | are still some 3rd-party code using it, and fixing them is not trivial. As an excuse gift, the memory leaks on failure in resurrected a_set.c have been fixed.
* The NO_ASN1_OLD define was introduced in 0.9.7, 8 years ago, to allow formiod2014-04-151-25/+0
| | | | | | | | | | obsolete (and mostly internal) routines to be compiled out. We don't expect any reasonable software to stick to these interfaces, so better clean up the view and unifdef -DNO_ASN1_OLD. The astute reader will notice the existence of NO_OLD_ASN1 which serves a similar purpose, but is more entangled. Its time will come, soon.
* Cope with the removal of openssl/symhacks.hderaadt2014-04-131-2/+0
|
* resolve conflictsdjm2012-10-131-3/+5
|
* openssl-1.0.0e: resolve conflictsdjm2011-11-031-1/+1
|
* resolve conflicts, fix local changesdjm2010-10-011-87/+160
|
* resolve conflictsdjm2009-04-061-0/+3
|
* resolve conflictsdjm2008-09-061-64/+277
|
* resolve conflictsdjm2006-06-271-0/+2
|
* resolve conflictsdjm2005-04-291-1/+7
|
* merge 0.9.7b with local changes; crank majors for libssl/libcryptomarkus2003-05-121-2/+3
|
* merge openssl-0.9.7-beta3, tested on vax by miod@markus2002-09-101-0/+1
|
* OpenSSL 0.9.7 stable 2002 05 08 mergebeck2002-05-151-409/+361
|