summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/v3_lib.c
AgeCommit message (Collapse)Author
2008-11-05Update obsolete email address...Dr. Stephen Henson
2008-10-22Create function of the form OBJ_bsearch_xxx() in bsearch typesafe macrosDr. Stephen Henson
with the appropriate parameters which calls OBJ_bsearch(). A compiler will typically inline this. This avoids the need for cmp_xxx variables and fixes unchecked const issues with CHECKED_PTR_OF()
2008-10-12Type-checked (and modern C compliant) OBJ_bsearch.Ben Laurie
2005-05-11Fix more error codes.Bodo Möller
(Also improve util/ck_errf.pl script, and occasionally fix source code formatting.)
2004-03-15Constify d2i, s2i, c2i and r2i functions and other associatedRichard Levitte
functions and macros. This change has associated tags: LEVITTE_before_const and LEVITTE_after_const. Those will be removed when this change has been properly reviewed.
2003-05-28PR: 631Dr. Stephen Henson
Submitted by: Doug Sauder <dws+001@hunnysoft.com> Fix bug in X509V3_get_d2i() when idx in not NULL.
2001-02-23Initial support for ASN1_ITEM_FUNCTION option toDr. Stephen Henson
change the way ASN1 modules are exported. Still needs a bit of work for example the hack which a dummy function prototype to avoid compilers warning about multiple ;s.
2001-02-16New options to 'ca' utility to support CRL entry extensions.Dr. Stephen Henson
Add revelant new X509V3 extensions. Add OIDs. Fix ASN1 memory leak code to pop info if external allocation used.
2000-12-27X509V3_add_i2d() needs to be able to allocate aDr. Stephen Henson
STACK_OF(X509_EXTENSION) so it should be passed STACK_OF(X509_EXTENSION) ** in the first argument. Modify wrappers appropriately.
2000-12-24New function X509V3_add_i2d() this is used forDr. Stephen Henson
encoding, replacing and deleting extensions. Fix X509V3_get_d2i() so it uses takes note of new critical behaviour.
2000-12-13Rewrite the extension code to use an ASN1_ITEM structureDr. Stephen Henson
for its ASN1 operations as well as the old style function pointers (i2d, d2i, new, free). Change standard extensions to support this. Fix a warning in BN_mul(), bn_mul.c about uninitialised 'j'.
2000-06-11Document EVP routines. Change EVP_SealInit() and EVP_OpenInit()Dr. Stephen Henson
to support multiple calls. New function to retrieve email address from certificates and requests.
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-06-01The previous commit to crypto/stack/*.[ch] pulled the type-safety stringsGeoff Thorpe
yet tighter, and also put some heat on the rest of the library by insisting (correctly) that compare callbacks used in stacks are prototyped with "const" parameters. This has led to a depth-first explosion of compiler warnings in the code where 1 constification has led to 3 or 4 more. Fortunately these have all been resolved to completion and the code seems cleaner as a result - in particular many of the _cmp() functions should have been prototyped with "const"s, and now are. There was one little problem however; X509_cmp() should by rights compare "const X509 *" pointers, and it is now declared as such. However, it's internal workings can involve recalculating hash values and extensions if they have not already been setup. Someone with a more intricate understanding of the flow control of X509 might be able to tighten this up, but for now - this seemed the obvious place to stop the "depth-first" constification of the code by using an evil cast (they have migrated all the way here from safestack.h). Fortunately, this is the only place in the code where this was required to complete these type-safety changes, and it's reasonably clear and commented, and seemed the least unacceptable of the options. Trying to take the constification further ends up exploding out considerably, and indeed leads directly into generalised ASN functions which are not likely to cooperate well with this.
2000-05-17Typesafety Thought Police last part.Ben Laurie
2000-05-15Get rid of more non-ANSI declarations.Ulf Möller
2000-02-13Modernise 'selfsign.c' to use new X509_NAME codeDr. Stephen Henson
and add example of extension aliasing. Also fix the extension aliasing because it didn't work :-)
2000-02-07Rename the X509V3_*_d2i functions to X509_get_ext_d2i() etc.Dr. Stephen Henson
This better reflects their behaviour.
1999-12-01Modify the X509 V3 extension lookup code.Dr. Stephen Henson
1999-11-27Add trust setting support to the verify code. It now checks theDr. Stephen Henson
trust settings of the root CA. After a few fixes it seems to work OK. Still need to add support to SSL and S/MIME code though.
1999-11-23Support for authority information access extension.Dr. Stephen Henson
Fix so EVP_PKEY_rset_*() check return codes.
1999-10-11Add EX_DATA support to X509.Dr. Stephen Henson
Fix a bug in the X509_get_d2i() functions which didn't check if crit was NULL.
1999-10-09New functions to parse and get extensions.Dr. Stephen Henson
1999-05-23Set ext_list to NULL after use.Dr. Stephen Henson
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller
Submitted by: Reviewed by: PR:
1999-04-21Suppport for CRL distribution points extension. Also document some ofDr. Stephen Henson
this stuff.
1999-04-20Various fixes so Win32 compile may work. Convert GeneralNames to use safe stack.Dr. Stephen Henson
1999-04-19Change functions to ANSI C.Ulf Möller
1999-04-18Initial support for Certificate Policies extension: print out works but settingDr. Stephen Henson
isn't fully implemented (yet).
1999-04-14Add some utilities to support SXNet extension also add support in DEF filesDr. Stephen Henson
generator to typesafe stacks.
1999-03-27Add initial support for Thawte strong extranet certificate extensions andDr. Stephen Henson
include an 'indent' option to V3 stuff.
1999-03-04Deleted my str_dup() function from X509V3: the same functionality is providedDr. Stephen Henson
by BUF_MEM_strdup(). Added text documentation to the BUF_MEM stuff.
1999-02-22Various changes to make this stuff compile under Win32 and VC++ with andDr. Stephen Henson
without -debug option to mk1mf.pl. Change _export to is_export (_export is a reserved word under VC++). Add yucky function prototype function pointer casts. Sanitise the included files in crypto/x509v3. Also changed ssleay.exe target to openssl.exe
1999-02-20Preliminary support for reason code CRL extension.Dr. Stephen Henson
1999-02-19Overhaul 'crl' application, add a proper X509_CRL_print function and startDr. Stephen Henson
to support CRL extensions.
1999-02-17Oops! Remeber to include the other patches this time...Dr. Stephen Henson
1999-02-10More extension code. Incomplete support for subject and issuer altDr. Stephen Henson
name, issuer and authority key id. Change the i2v function parameters and add an extra 'crl' parameter in the X509V3_CTX structure: guess what that's for :-) Fix to ASN1 macro which messed up IMPLICIT tag and add f_enum.c which adds a2i, i2a for ENUMERATED.
1999-02-07Add support for GeneralName and GeneralNames extensions. Also preliminaryDr. Stephen Henson
support for subject and issuer alt name. Add a new ASN1 macro and fix a nasty bug that left an ASN1 buffer modified on an error condition with IMPLICIT tagging.
1999-01-24Initial addition of new X509 V3 files, tidy of old files.Dr. Stephen Henson