]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Remove dynamically-allocated storage for certificate name
authorMichael Brown <mcb30@ipxe.org>
Tue, 25 Mar 2014 15:01:32 +0000 (15:01 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 25 Mar 2014 16:30:43 +0000 (16:30 +0000)
commit01fa7efa38060c010103d444b47a2cd3ff684f82
treeaa9eaf98352260b208691559165696b71fb05812
parent151e4d9bfaaaa520d5eb3547d676e6b209d2bd45
[crypto] Remove dynamically-allocated storage for certificate name

iPXE currently allocates a copy the certificate's common name as a
string.  This string is used by the TLS and CMS code to check
certificate names against an expected name, and also appears in
debugging messages.

Provide a function x509_check_name() to centralise certificate name
checking (in preparation for adding subjectAlternativeName support),
and a function x509_name() to provide a name to be used in debugging
messages, and remove the dynamically allocated string.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/cms.c
src/crypto/ocsp.c
src/crypto/x509.c
src/include/ipxe/x509.h
src/net/tls.c
src/net/validator.c