summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-03-15 11:16:42 +0000
committerSimon Josefsson <simon@josefsson.org>2006-03-15 11:16:42 +0000
commit2f676d107f31775fa3d5189ffccbd69beb29183c (patch)
tree3a63a72b5bacf9a291e11cf959c54db2e26c04c0 /lib
parent10e9bbed5e9344f1179d11b235f13c44373cbc21 (diff)
downloadgnutls-2f676d107f31775fa3d5189ffccbd69beb29183c.tar.gz
Indent.
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_cert.c42
1 files changed, 22 insertions, 20 deletions
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;
}