eliminated TIMETOA_BUF definition
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 20 Apr 2009 06:21:49 +0000 (06:21 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 20 Apr 2009 06:21:49 +0000 (06:21 -0000)
src/pluto/asn1.c
src/pluto/defs.h
src/pluto/ocsp.c

index fa0b4e7..b760539 100644 (file)
@@ -475,7 +475,7 @@ timetoasn1(const time_t *time, asn1_t type)
 {
        int offset;
        const char *format;
-       char buf[TIMETOA_BUF];
+       char buf[BUF_LEN];
        chunk_t formatted_time;
        struct tm *t = gmtime(time);
 
index 1ad1de0..5cb84ef 100644 (file)
@@ -83,9 +83,6 @@ typedef struct {
        int fd;
 } prompt_pass_t;
 
-/* size of timetoa string buffer */
-#define TIMETOA_BUF     30
-
 /* filter eliminating the directory entries '.' and '..' */
 typedef struct dirent dirent_t;
 extern int file_select(const dirent_t *entry);
index ce6df89..ef270cd 100644 (file)
@@ -613,9 +613,9 @@ list_ocsp_locations(ocsp_location_t *location, bool requests, bool utc
                        }
                        while (certinfo != NULL)
                        {
-                               char thisUpdate[TIMETOA_BUF];
+                               char thisUpdate[BUF_LEN];
 
-                               snprintf(thisUpdate, TIMETOA_BUF, "%T", &certinfo->thisUpdate, utc);
+                               snprintf(thisUpdate, BUF_LEN, "%T", &certinfo->thisUpdate, utc);
 
                                if (requests)
                                {