From efadbf79e9c864578bfd1277d824e69b2989aac5 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 30 Mar 2006 07:22:01 +0000 Subject: - rewrote a lot of RSA stuff - done major work for ASN1/decoder - allow loading of ASN1 der encoded private keys, public keys and certificates - extracting public key from certificates - passing certificates from stroke to charon => basic authentication with RSA certificates works! --- Source/charon/transforms/certificate.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'Source/charon/transforms/certificate.h') diff --git a/Source/charon/transforms/certificate.h b/Source/charon/transforms/certificate.h index 3cbe7f9ba..69baed0da 100755 --- a/Source/charon/transforms/certificate.h +++ b/Source/charon/transforms/certificate.h @@ -26,7 +26,6 @@ #include #include #include -#include typedef struct certificate_t certificate_t; @@ -34,12 +33,10 @@ typedef struct certificate_t certificate_t; /** * @brief X509 certificate. * - * Currently only supports signing using EMSA encoding. - * * @b Constructors: - * - certificate_create() + * - certificate_create_from_chunk() * - * @ingroup rsa + * @ingroup transforms */ struct certificate_t { @@ -60,13 +57,14 @@ struct certificate_t { }; /** - * @brief Create a new certificate without - * any key inside. + * @brief Read a certificate from a blob. * * @return created certificate_t. * - * @ingroup rsa + * @ingroup transforms */ -certificate_t *certificate_create(); +certificate_t *certificate_create_from_chunk(chunk_t chunk); + +certificate_t *certificate_create_from_file(char *filename); #endif /* CERTIFICATE_H_ */ -- cgit v1.2.3