summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
AgeCommit message (Collapse)Author
2001-09-01Make the necessary changes to work with the recent "ex_data" overhaul.Geoff Thorpe
See the commit log message for that for more information. NB: X509_STORE_CTX's use of "ex_data" support was actually misimplemented (initialisation by "memset" won't/can't/doesn't work). This fixes that but requires that X509_STORE_CTX_init() be able to handle errors - so its prototype has been changed to return 'int' rather than 'void'. All uses of that function throughout the source code have been tracked down and adjusted.
2001-06-28Modify apps to use NCONF code instead of old CONF code.Dr. Stephen Henson
Add new extension functions which work with NCONF. Tidy up extension config routines and remove redundant code. Fix NCONF_get_number(). Todo: more testing of apps to see they still work...
2001-06-23Use apps_shutdown() in all applications, in case someone decides notRichard Levitte
to go the monolith way (does anyone do that these days?). NOTE: a few applications are missing in this commit. I've a few more changes in them that I haven't tested yet.
2001-06-18Provide an application-common setup function for engines and use itRichard Levitte
everywhere.
2001-05-30Extend all the loading functions to take an engine pointer, a passRichard Levitte
string (some engines may have certificates protected by a PIN!) and a description to put into error messages. Also, have our own password callback that we can send both a password and some prompt info to. The default password callback in EVP assumes that the passed parameter is a password, which isn't always the right thing, and the ENGINE code (at least the nCipher one) makes other assumptions... Also, in spite of having the functions to load keys, some utilities did the loading all by themselves... That's changed too.
2001-03-08Bugfix: previously the serial number file could turn negativeBodo Möller
because an incompletely initialized ASN1_INTEGER was used.
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
2001-02-20Fix warning.Ulf Möller
2001-02-19Make all configuration macros available for application by makingRichard Levitte
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-02-19New -set_serial options to 'req' and 'x509'.Dr. Stephen Henson
Remove the old broken bio read of serial numbers in the 'ca' index file. This would choke if a revoked certificate was specified with a negative serial number. Fix typo in uid.c
2001-02-06format stringsUlf Möller
2000-12-15If CONF_get_string returns NULL and we want to tolerate thisBodo Möller
(e.g., use a default), we have to call ERR_clear_error().
2000-10-28Add the possibility to use keys handled by engines in moreRichard Levitte
applications.
2000-10-27The majority of the OCSP code from CertCo.Richard Levitte
2000-10-26Merge the engine branch into the main trunk. All conflicts resolved.Richard Levitte
At the same time, add VMS support for Rijndael.
2000-10-06More code for X509_print_ex() support.Dr. Stephen Henson
2000-09-20On VMS, stdout may very well lead to a file that is written to in aRichard Levitte
record-oriented fashion. That means that every write() will write a separate record, which will be read separately by the programs trying to read from it. This can be very confusing. The solution is to put a BIO filter in the way that will buffer text until a linefeed is reached, and then write everything a line at a time, so every record written will be an actual line, not chunks of lines and not (usually doesn't happen, but I've seen it once) several lines in one record. Voila, BIO_f_linebuffer() is born. Since we're so close to release time, I'm making this VMS-only for now, just to make sure no code is needlessly broken by this. After the release, this BIO method will be enabled on all other platforms as well.
2000-09-06Get rid of ASN1_UTCTIME_get, which cannot work with time_tBodo Möller
return type (on platforms where time_t is a 32 bit value). New function ASN1_UTCTIME_cmp_time_t as a replacement for use in apps/x509.c.
2000-08-24New option to CA.pl to sign request using CA extensions.Dr. Stephen Henson
This allows intermediate CAs to be created more easily. PKCS12_create() now checks private key matches certificate. Fix typo in x509 app. Update docs. New function ASN1_STRING_to_UTF8() converts any ASN1_STRING type to UTF8.
2000-07-28New ASN1_STRING_print_ex() and X509_NAME_print_ex()Dr. Stephen Henson
functions. These are intended to be replacements for the ancient ASN1_STRING_print() and X509_NAME_print() functions. The new functions support RFC2253 and various pretty printing options. It is also possible to display international characters if the terminal properly handles UTF8 encoding (Linux seems to tolerate this if the "unicode_start" script is run). Still needs to be documented, integrated into other utilities and extensively tested.
2000-06-22Move add_oid_section to apps.c, so it can be shared by severalRichard Levitte
applications. Also, have it and the certificate and key loading functions take a BIO argument for error output.
2000-06-22Move the certificate and key loading functions to apps.c, so they canRichard Levitte
be shared by several applications.
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-05-14Allow UTCTIME objects to be retrieved. Check for imminent cert expiry.Ben Laurie
2000-05-02Fix a memory leak, and don't generate inappropriate error messageBodo Möller
when PEM_read_bio_X509_REQ fails.
2000-03-27Fix typo in -clrext option, but add a compatibility hack becauseBodo Möller
0.9.5a should not break anything that works in 0.9.5.
2000-02-26More get0 et al. changes. Also provide fgrep targets in CHANGESBodo Möller
where the new functions are mentioned.
2000-02-26Rename functions for new convention.Dr. Stephen Henson
2000-02-19Add -clrext option to 'x509'Dr. Stephen Henson
2000-02-16Pass phrase reorganisation.Dr. Stephen Henson
2000-02-11Make gcc 2.95.2 happy again, even under ``-Wall -Wshadow -Wpointer-arith ↵Ralf S. Engelschall
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
2000-02-03ispell (and minor modifications)Ulf Möller
2000-01-21Make -CAcreateserial start from 1 instead of 0 forDr. Stephen Henson
serial numbers.
2000-01-07More X509_ATTRIBUTE changes.Dr. Stephen Henson
1999-12-29Simplify the trust structure: basically zap the bit strings andDr. Stephen Henson
represent everything by OIDs.
1999-12-24Allow passwords to be included on command line for a fewDr. Stephen Henson
more utilities.
1999-12-02Change the trust and purpose code so it doesn't need initDr. Stephen Henson
either and has a static and dynamic mix.
1999-11-29Add part of chain verify SSL support code: not complete or doing anythingDr. Stephen Henson
yet. Add a function X509_STORE_CTX_purpose_inherit() which implements the logic of "inheriting" purpose and trust from a parent structure and using a default: this will be used in the SSL code and possibly future S/MIME. Partial documentation of the 'verify' utility. Still need to document how all the extension checking works and the various error messages.
1999-11-27Initial trust code: allow setting of trust checking functionsDr. Stephen Henson
in a table. Doesn't do too much yet. Make the -<digestname> options in 'x509' affect all relevant options. Change the name of the 'notrust' options to 'reject' as this causes less confusion and is a better description of the effect. A few constification changes.
1999-11-26New options to the -verify program which can be used for chain verification.Dr. Stephen Henson
Extend the X509_PURPOSE structure to include shortnames for purposed and default trust ids. Still need some extendable trust checking code and integration with the SSL and S/MIME code.
1999-11-21Transparent support for PKCS#8 private keys in RSA/DSA.Dr. Stephen Henson
New universal public key format. Fix CRL+cert load problem in by_file.c Make verify report errors when loading files or dirs
1999-11-08Fix to the -revoke option in ca. It was leaking memory, crashing and justDr. Stephen Henson
plain not working :-( Also fix some memory leaks in the new X509_NAME code. Fix so new app_rand code doesn't crash 'x509' and move #include so it compiles under Win32.
1999-11-04Allow additional information to be attached to aDr. Stephen Henson
certificate: currently this includes trust settings and a "friendly name".
1999-10-26Various randomness handling bugfixes and improvements --Bodo Möller
some utilities that should have used RANDFILE did not, and -rand handling was broken except in genrsa.
1999-10-25Improve support for running everything as a monolithic application.Bodo Möller
Submitted by: Lennart Bång, Bodo Möller
1999-10-13Initial support for certificate purpose checking: this willDr. Stephen Henson
ultimately lead to certificate chain verification. It is VERY EXPERIMENTAL at present though.
1999-08-27Allow the extension section specified in config files to be overriddenDr. Stephen Henson
on the command line for various utilities.
1999-07-21Additional user data argument to pem_password_cb function typeBodo Möller
and to lots of PEM_... functions. Submitted by: Damien Miller <dmiller@ilogic.com.au>
1999-07-11Fix a bug in x509.c that omitted DSA parameters when they didn't match theDr. Stephen Henson
signers parameters. Changed it to never omit parameters.