From: Simon Josefsson Date: Wed, 15 Mar 2006 11:16:42 +0000 (+0000) Subject: Indent. X-Git-Tag: gnutls_1_2_11~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f676d107f31775fa3d5189ffccbd69beb29183c;p=thirdparty%2Fgnutls.git Indent. --- diff --git a/lib/gnutls_cert.c b/lib/gnutls_cert.c index c9a4a97dfe..0a52fb7bf8 100644 --- a/lib/gnutls_cert.c +++ b/lib/gnutls_cert.c @@ -386,24 +386,25 @@ OPENPGP_VERIFY_KEY_FUNC _E_gnutls_openpgp_verify_key = NULL; * -*/ static time_t -_gnutls_x509_get_raw_crt_activation_time(const gnutls_datum_t *cert) +_gnutls_x509_get_raw_crt_activation_time (const gnutls_datum_t * cert) { gnutls_x509_crt_t xcert; time_t result; - result = gnutls_x509_crt_init(&xcert); + result = gnutls_x509_crt_init (&xcert); if (result < 0) - return (time_t) -1; + return (time_t) - 1; - result = gnutls_x509_crt_import(xcert, cert, GNUTLS_X509_FMT_DER); - if (result < 0) { - gnutls_x509_crt_deinit(xcert); - return (time_t) -1; - } + result = gnutls_x509_crt_import (xcert, cert, GNUTLS_X509_FMT_DER); + if (result < 0) + { + gnutls_x509_crt_deinit (xcert); + return (time_t) - 1; + } - result = gnutls_x509_crt_get_activation_time(xcert); + result = gnutls_x509_crt_get_activation_time (xcert); - gnutls_x509_crt_deinit(xcert); + gnutls_x509_crt_deinit (xcert); return result; } @@ -419,24 +420,25 @@ _gnutls_x509_get_raw_crt_activation_time(const gnutls_datum_t *cert) * -*/ static time_t -_gnutls_x509_get_raw_crt_expiration_time(const gnutls_datum_t *cert) +_gnutls_x509_get_raw_crt_expiration_time (const gnutls_datum_t * cert) { gnutls_x509_crt_t xcert; time_t result; - result = gnutls_x509_crt_init(&xcert); + result = gnutls_x509_crt_init (&xcert); if (result < 0) - return (time_t) -1; + return (time_t) - 1; - result = gnutls_x509_crt_import(xcert, cert, GNUTLS_X509_FMT_DER); - if (result < 0) { - gnutls_x509_crt_deinit(xcert); - return (time_t) -1; - } + result = gnutls_x509_crt_import (xcert, cert, GNUTLS_X509_FMT_DER); + if (result < 0) + { + gnutls_x509_crt_deinit (xcert); + return (time_t) - 1; + } - result = gnutls_x509_crt_get_expiration_time(xcert); + result = gnutls_x509_crt_get_expiration_time (xcert); - gnutls_x509_crt_deinit(xcert); + gnutls_x509_crt_deinit (xcert); return result; }