summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/tls.h
diff options
context:
space:
mode:
authorMichael Brown2009-02-10 18:37:24 +0100
committerMichael Brown2009-02-10 19:30:17 +0100
commit8e960eb67c3c3974f4eca34e1fe733791f70ca09 (patch)
treef068d9b2dec5d41a6f20942b40fd778e4a1ce952 /src/include/gpxe/tls.h
parent[crypto] Remove unused files (diff)
downloadipxe-8e960eb67c3c3974f4eca34e1fe733791f70ca09.tar.gz
ipxe-8e960eb67c3c3974f4eca34e1fe733791f70ca09.tar.xz
ipxe-8e960eb67c3c3974f4eca34e1fe733791f70ca09.zip
[tls] Use our own ASN.1 routines for certificate parsing
Use our own, more robust, ASN.1 parsing routines to extract the RSA public key from a server certificate. Remove the now-unused AXTLS ASN.1 parser.
Diffstat (limited to 'src/include/gpxe/tls.h')
-rw-r--r--src/include/gpxe/tls.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/gpxe/tls.h b/src/include/gpxe/tls.h
index 39109452..182bc49d 100644
--- a/src/include/gpxe/tls.h
+++ b/src/include/gpxe/tls.h
@@ -14,6 +14,7 @@
#include <gpxe/crypto.h>
#include <gpxe/md5.h>
#include <gpxe/sha1.h>
+#include <gpxe/x509.h>
/** A TLS header */
struct tls_header {
@@ -157,10 +158,7 @@ struct tls_session {
uint8_t handshake_sha1_ctx[SHA1_CTX_SIZE];
/** Hack: server RSA public key */
- uint8_t *rsa_mod;
- size_t rsa_mod_len;
- uint8_t *rsa_pub_exp;
- size_t rsa_pub_exp_len;
+ struct x509_rsa_public_key rsa;
/** TX sequence number */
uint64_t tx_seq;