From d349a3d11ad93e59306ed7537fb1ae3abd48a351 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 21 Jan 2008 00:30:26 +0000 Subject: [PATCH] added notBefore and notAfter to x509_create() --- src/libstrongswan/crypto/x509.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libstrongswan/crypto/x509.c b/src/libstrongswan/crypto/x509.c index 375a79b31..4179bf5df 100755 --- a/src/libstrongswan/crypto/x509.c +++ b/src/libstrongswan/crypto/x509.c @@ -1417,12 +1417,16 @@ static private_x509_t *x509_create_empty(void) /* * Described in header. */ -x509_t *x509_create_(chunk_t serialNumber, identification_t *issuer, identification_t *subject) +x509_t *x509_create(chunk_t serialNumber, identification_t *issuer, + time_t notBefore, time_t notAfter, + identification_t *subject) { private_x509_t *this = x509_create_empty(); this->serialNumber = serialNumber; this->issuer = issuer->clone(issuer); + this->notBefore = notBefore; + this->notAfter = notAfter; this->subject = subject->clone(subject); return &this->public;