summaryrefslogtreecommitdiff
path: root/lib/x509/pkcs12.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix gnutls_pkcs12_simple_parse to always extract the complete chainstefan-fixesStefan Sørensen2016-08-081-20/+15
| | | | | | | | | gnutls_pkcs12_simple_parse was only collecting extra certificates that was possible elements of the certificate chain when the extra_certs argument was not NULL. Fix by allways collecting all the certificates, any unneeded certificates are released before returning if extra_certs is NULL anyway. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
* several sign-related API changesNikos Mavrogiannopoulos2016-05-311-2/+3
| | | | | | | | | | This replaces the usage of "int" in functions which could only have accepted an "unsigned" value. Also functions which return unsigned values are explicitly tagged as such. The ABI remains the same with these changes. This allows easier catching of sign/unsigned related errors from the calling applications.
* pkcs12: correctly set salt size in gnutls_pkcs12_mac_infoNikos Mavrogiannopoulos2015-11-091-3/+4
| | | | Also eliminate leaks in PKCS #12 parsing.
* Removed the 'gnutls_' prefix from files to simplify file namingNikos Mavrogiannopoulos2015-08-231-5/+5
|
* doc: avoid using structure for opaque typesNikos Mavrogiannopoulos2015-03-201-14/+14
|
* use asn1_decode_simple_ber if availableNikos Mavrogiannopoulos2015-03-041-4/+4
|
* gnutls_pkcs12_simple_parse: doc updateNikos Mavrogiannopoulos2014-12-121-1/+1
|
* Fix double-free in gnutls_pkcs12_simple_parse()Chen Hongzhi2014-11-051-2/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* fixed compilation warningsNikos Mavrogiannopoulos2014-09-251-7/+3
|
* Re-initialize the ASN.1 structures on every importNikos Mavrogiannopoulos2014-08-171-5/+30
| | | | | That allows to import a key/certificate on a structure even if the previous import failed.
* pkcs12: added check for null OID in gnutls_pkcs12_generate_mac2Nikos Mavrogiannopoulos2014-08-111-4/+5
|
* pkcs12: added gnutls_pkcs12_generate_mac2()Nikos Mavrogiannopoulos2014-08-101-13/+32
| | | | That allows a choice on the MAC algorithm to be used.
* pkcs12: added gnutls_pkcs12_mac_info to obtain information on the MACNikos Mavrogiannopoulos2014-08-101-0/+101
|
* pkcs12: Allow verification with structures that support other than HMAC-SHA1 ↵Nikos Mavrogiannopoulos2014-08-101-16/+41
| | | | MACs.
* updated doc for gnutls_pkcs12_simple_parse()Nikos Mavrogiannopoulos2014-08-101-5/+8
|
* pkcs12: increased the number of iterations for MACNikos Mavrogiannopoulos2014-08-041-1/+1
|
* updated documentation for gnutls_pkcs12_simple_parseNikos Mavrogiannopoulos2014-07-291-16/+12
|
* several bug fixes due to coverity.Nikos Mavrogiannopoulos2014-04-151-0/+1
|
* reindented codeNikos Mavrogiannopoulos2013-11-081-1545/+1457
|
* simplified access to cipher and mac properties to reduce wasted cycles.Nikos Mavrogiannopoulos2013-05-251-2/+4
|
* doc updatesNikos Mavrogiannopoulos2013-04-081-7/+7
|
* The HMAC subsystem can now be used for other MAC algorithms, like UMAC. ↵Nikos Mavrogiannopoulos2013-03-191-8/+8
| | | | UMAC-96 and UMAC-128 were conditionally added.
* Use gnutls_realloc_fast everywhere. Suggested by David Woodhouse.Nikos Mavrogiannopoulos2013-02-181-2/+2
|
* Use LGPLv2.1 in the files their author's agreed to.Nikos Mavrogiannopoulos2013-02-011-1/+1
|
* doc fixNikos Mavrogiannopoulos2013-01-051-5/+5
|
* Added correct sinceNikos Mavrogiannopoulos2013-01-051-1/+1
|
* corrected copyright noticesNikos Mavrogiannopoulos2012-12-061-0/+1
|
* Import PKCS #12 keysNikos Mavrogiannopoulos2012-12-061-17/+23
|
* rewritten ASN.1 handling string subsystems to use the new libtasn1 APIs.Nikos Mavrogiannopoulos2012-11-241-26/+8
|
* doc updateNikos Mavrogiannopoulos2012-11-191-1/+1
|
* Added functions to parse the certificate policies extention.Nikos Mavrogiannopoulos2012-11-181-18/+19
| | | | | Added gnutls_x509_crt_get_policy() etc. In addition several updated in the handling of strings in X.509 structures.
* Added functions to export structures in an allocated buffer.Nikos Mavrogiannopoulos2012-10-071-0/+31
|
* several cleanupsNikos Mavrogiannopoulos2012-09-221-1/+1
|
* doc fixNikos Mavrogiannopoulos2012-07-211-2/+1
|
* simplified base64 encoding/decoding functions by using a datum.Nikos Mavrogiannopoulos2012-07-081-9/+2
|
* Added flag GNUTLS_PKCS12_SP_INCLUDE_SELF_SIGNED for ↵Nikos Mavrogiannopoulos2012-06-101-21/+29
| | | | gnutls_pkcs12_simple_parse().
* deinitialize extra certs if they are empty.Nikos Mavrogiannopoulos2012-06-101-8/+18
|
* Changed prototype for gnutls_pkcs12_simple_parse() to simplify chain building.Nikos Mavrogiannopoulos2012-06-091-39/+117
|
* Re-use GNUTLS_E_DECRYPTION_FAILED for encrypted structures.Nikos Mavrogiannopoulos2012-06-051-3/+3
|
* Introduced GNUTLS_E_ENCRYPTED_STRUCTURE error code.Nikos Mavrogiannopoulos2012-06-031-1/+17
| | | | | | This error code is returned by encrypted key import functions such as gnutls_x509_privkey_import_pkcs8() and gnutls_pkcs12_simple_parse() when an encrypted structure is provided but no password is given.
* gnutls_certificate_set_x509_simple_pkcs12_file() now imports certificate ↵Nikos Mavrogiannopoulos2012-06-031-0/+388
| | | | | | chain if it is present. gnutls_pkcs12_parse() was renamed to gnutls_pkcs12_simple_parse()
* ENABLE_PKI is no moreNikos Mavrogiannopoulos2012-02-101-4/+0
|
* Cleanup copyright headers.Simon Josefsson2012-01-251-2/+1
|
* Fixed signed/unsigned warnings.Nikos Mavrogiannopoulos2012-01-211-8/+8
| | | | Dropped opaque type (replaced with uint8_t)
* Run 'make update-copyright'.Simon Josefsson2012-01-161-1/+1
|
* Optimizations in DH parameter generation.Nikos Mavrogiannopoulos2011-12-121-1/+1
| | | | | | The larger prime is find first and the big loop needs to find a smaller prime, increasing performance. The _gnutls_rnd() function is now inline and GNUTLS_RND_NONCE doesn't update random generator state.
* Internals section updated.Nikos Mavrogiannopoulos2011-08-121-1/+1
|
* Clarify license and copyright.Simon Josefsson2011-08-031-1/+1
|
* documentation fixesNikos Mavrogiannopoulos2011-07-231-8/+8
|
* Upgraded to LGPLv3.Nikos Mavrogiannopoulos2011-06-231-5/+3
|