mirror of
https://github.com/xcat2/xNBA.git
synced 2026-04-10 07:11:27 +00:00
Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
42 lines
728 B
C
42 lines
728 B
C
#ifndef _IPXE_X509_H
|
|
#define _IPXE_X509_H
|
|
|
|
/** @file
|
|
*
|
|
* X.509 certificates
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#include <stdint.h>
|
|
|
|
struct asn1_cursor;
|
|
|
|
/** 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;
|
|
};
|
|
|
|
/**
|
|
* 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 );
|
|
|
|
#endif /* _IPXE_X509_H */
|