aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/x509.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-03-18 14:44:53 +0000
committerMichael Brown <mcb30@ipxe.org>2012-03-18 14:44:53 +0000
commitdc87161c300e01fa5a6cca11af7fad22ea6cded9 (patch)
tree477e4be1e0e2db75f414a5bf34703a311da8e404 /src/include/ipxe/x509.h
parent7fb064470f8a7128daab3ed52e954f4269214f75 (diff)
downloadipxe-dc87161c300e01fa5a6cca11af7fad22ea6cded9.tar.gz
[tls] Use iPXE native RSA algorithm
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/x509.h')
-rw-r--r--src/include/ipxe/x509.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h
index 2ea21aa9c..f8cffabdb 100644
--- a/src/include/ipxe/x509.h
+++ b/src/include/ipxe/x509.h
@@ -11,31 +11,14 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
#include <stdlib.h>
-
-struct asn1_cursor;
+#include <ipxe/asn1.h>
/** An X.509 RSA public key */
struct x509_rsa_public_key {
- /** Modulus */
- uint8_t *modulus;
- /** Modulus length */
- size_t modulus_len;
- /** Exponent */
- uint8_t *exponent;
- /** Exponent length */
- size_t exponent_len;
+ /** Raw public key */
+ struct asn1_cursor raw;
};
-/**
- * Free X.509 RSA public key
- *
- * @v rsa_pubkey RSA public key
- */
-static inline void
-x509_free_rsa_public_key ( struct x509_rsa_public_key *rsa_pubkey ) {
- free ( rsa_pubkey->modulus );
-}
-
extern int x509_rsa_public_key ( const struct asn1_cursor *certificate,
struct x509_rsa_public_key *rsa_pubkey );