aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/x509/x509.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/x509/x509.c')
-rw-r--r--src/daemon/https/x509/x509.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/daemon/https/x509/x509.c b/src/daemon/https/x509/x509.c
index 9ce1e76d..2fa84551 100644
--- a/src/daemon/https/x509/x509.c
+++ b/src/daemon/https/x509/x509.c
@@ -213,50 +213,6 @@ MHD_gnutls_x509_crt_get_version (MHD_gnutls_x509_crt_t cert)
213} 213}
214 214
215/** 215/**
216 * MHD_gnutls_x509_crt_get_activation_time - This function returns the Certificate's activation time
217 * @cert: should contain a MHD_gnutls_x509_crt_t structure
218 *
219 * This function will return the time this Certificate was or will be activated.
220 *
221 * Returns (time_t)-1 on error.
222 *
223 **/
224time_t
225MHD_gnutls_x509_crt_get_activation_time (MHD_gnutls_x509_crt_t cert)
226{
227 if (cert == NULL)
228 {
229 MHD_gnutls_assert ();
230 return (time_t) - 1;
231 }
232
233 return MHD__gnutls_x509_get_time (cert->cert,
234 "tbsCertificate.validity.notBefore");
235}
236
237/**
238 * MHD_gnutls_x509_crt_get_expiration_time - This function returns the Certificate's expiration time
239 * @cert: should contain a MHD_gnutls_x509_crt_t structure
240 *
241 * This function will return the time this Certificate was or will be expired.
242 *
243 * Returns (time_t)-1 on error.
244 *
245 **/
246time_t
247MHD_gnutls_x509_crt_get_expiration_time (MHD_gnutls_x509_crt_t cert)
248{
249 if (cert == NULL)
250 {
251 MHD_gnutls_assert ();
252 return (time_t) - 1;
253 }
254
255 return MHD__gnutls_x509_get_time (cert->cert,
256 "tbsCertificate.validity.notAfter");
257}
258
259/**
260 * MHD_gnutls_x509_crt_get_pk_algorithm - This function returns the certificate's PublicKey algorithm 216 * MHD_gnutls_x509_crt_get_pk_algorithm - This function returns the certificate's PublicKey algorithm
261 * @cert: should contain a MHD_gnutls_x509_crt_t structure 217 * @cert: should contain a MHD_gnutls_x509_crt_t structure
262 * @bits: if bits is non null it will hold the size of the parameters' in bits 218 * @bits: if bits is non null it will hold the size of the parameters' in bits