blob: 318cdc4d243073e7a9a164108ec67b4017bacdb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/** --- BEGIN COPYRIGHT BLOCK ---
* Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
* Copyright (C) 2005 Red Hat, Inc.
* All rights reserved.
--- END COPYRIGHT BLOCK --- */
#include <stdio.h>
#include "dsgw.h"
#include <ssl.h>
#include <sec.h>
main()
{
char *p;
time_t expires;
char dn[ 512 ];
char pw[ 512 ];
char expsec[ 512 ];
int np = 0;
time_t last;
FILE *fp;
printf( "purge the cookie database\n" );
fp = dsgw_opencookiedb();
last = dsgw_getlastpurged( fp );
dsgw_closecookiedb( fp );
printf( "database was last purged at %s\n", ctime( &last ));
np = dsgw_purgedatabase( NULL );
printf( "%d records purged\n", np );
}
|