| 115 |
|
return buf; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
– |
/* small_file_date() |
| 119 |
– |
* Make a small YYYYMMDD formatted string suitable for a |
| 120 |
– |
* dated file stamp. |
| 121 |
– |
*/ |
| 122 |
– |
char * |
| 123 |
– |
small_file_date(time_t lclock) |
| 124 |
– |
{ |
| 125 |
– |
static char timebuffer[MAX_DATE_STRING]; |
| 126 |
– |
struct tm *tmptr; |
| 127 |
– |
|
| 128 |
– |
if (!lclock) |
| 129 |
– |
time(&lclock); |
| 130 |
– |
|
| 131 |
– |
tmptr = localtime(&lclock); |
| 132 |
– |
strftime(timebuffer, MAX_DATE_STRING, "%Y%m%d", tmptr); |
| 133 |
– |
|
| 134 |
– |
return timebuffer; |
| 135 |
– |
} |
| 136 |
– |
|
| 118 |
|
#ifdef HAVE_LIBCRYPTO |
| 119 |
|
char * |
| 120 |
|
ssl_get_cipher(const SSL *ssl) |