mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
eliminated TIMETOA_BUF definition
This commit is contained in:
parent
2e65569534
commit
4f4ae2f465
@ -475,7 +475,7 @@ timetoasn1(const time_t *time, asn1_t type)
|
|||||||
{
|
{
|
||||||
int offset;
|
int offset;
|
||||||
const char *format;
|
const char *format;
|
||||||
char buf[TIMETOA_BUF];
|
char buf[BUF_LEN];
|
||||||
chunk_t formatted_time;
|
chunk_t formatted_time;
|
||||||
struct tm *t = gmtime(time);
|
struct tm *t = gmtime(time);
|
||||||
|
|
||||||
|
@ -83,9 +83,6 @@ typedef struct {
|
|||||||
int fd;
|
int fd;
|
||||||
} prompt_pass_t;
|
} prompt_pass_t;
|
||||||
|
|
||||||
/* size of timetoa string buffer */
|
|
||||||
#define TIMETOA_BUF 30
|
|
||||||
|
|
||||||
/* filter eliminating the directory entries '.' and '..' */
|
/* filter eliminating the directory entries '.' and '..' */
|
||||||
typedef struct dirent dirent_t;
|
typedef struct dirent dirent_t;
|
||||||
extern int file_select(const dirent_t *entry);
|
extern int file_select(const dirent_t *entry);
|
||||||
|
@ -613,9 +613,9 @@ list_ocsp_locations(ocsp_location_t *location, bool requests, bool utc
|
|||||||
}
|
}
|
||||||
while (certinfo != NULL)
|
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)
|
if (requests)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user