]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Make more functions available internally (for OCSP).
authorSimon Josefsson <simon@josefsson.org>
Thu, 10 Nov 2011 11:31:00 +0000 (12:31 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 10 Nov 2011 11:31:00 +0000 (12:31 +0100)
lib/x509/common.c
lib/x509/common.h
lib/x509/extensions.c

index cfbcdff3a699786dbe463afb4abdfbeb4e6df379..69db11db7022fcd37f6319e4cb9098b5cd812470 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
- * Software Foundation, Inc.
+ * Copyright (C) 2003-2011 Free Software Foundation, Inc.
  *
  * Author: Nikos Mavrogiannopoulos
  *
@@ -599,7 +598,7 @@ _gnutls_x509_gtime2utcTime (time_t gtime, char *str_time, int str_time_size)
  * The given time is expressed as:
  * YEAR(4)|MONTH(2)|DAY(2)|HOUR(2)|MIN(2)|SEC(2)*
  */
-static time_t
+time_t
 _gnutls_x509_generalTime2gtime (const char *ttime)
 {
   char xx[5];
index d6cafdabddc239ee216c2af20a5ccd6ac2944d77..1d6caaf23d35c56779cbc410179c8e928d1ef588 100644 (file)
@@ -156,4 +156,14 @@ void _asnstr_append_name (char *name, size_t name_size, const char *part1,
 int
 check_if_same_cert (gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2);
 
+time_t _gnutls_x509_generalTime2gtime (const char *ttime);
+
+int get_extension (ASN1_TYPE asn, const char *root,
+                  const char *extension_id, int indx,
+                  gnutls_datum_t * ret, unsigned int *_critical);
+
+int set_extension (ASN1_TYPE asn, const char *root,
+                  const char *ext_id,
+                  const gnutls_datum_t * ext_data, unsigned int critical);
+
 #endif
index 025c38c846839c3c245ba4bea1cf70c9d39d4b06..4e73fd945b234cbee28942b5ba65cc678f4f873d 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010 Free Software
- * Foundation, Inc.
+ * Copyright (C) 2003-2011 Free Software Foundation, Inc.
  *
  * Author: Nikos Mavrogiannopoulos
  *
@@ -32,7 +31,7 @@
 #include <x509_int.h>
 #include <gnutls_datum.h>
 
-static int
+int
 get_extension (ASN1_TYPE asn, const char *root,
                const char *extension_id, int indx,
                gnutls_datum_t * ret, unsigned int *_critical)
@@ -408,7 +407,7 @@ overwrite_extension (ASN1_TYPE asn, const char *root, unsigned int indx,
   return 0;
 }
 
-static int
+int
 set_extension (ASN1_TYPE asn, const char *root,
                const char *ext_id,
                const gnutls_datum_t * ext_data, unsigned int critical)