ldns_key_list *key_signing_keys;
*/
struct tm tm;
- char buf1[255];
- char buf2[255];
uint32_t inception;
uint32_t expiration;
int line_nr = 0;
char c;
-
+
const char *prog = strdup(argv[0]);
inception = 0;
expiration = 0;
while ((c = getopt(argc, argv, "e:f:i:o:")) != -1) {
- strftime(buf1, sizeof(buf1), DATE_FORMAT, &tm);
- strftime(buf2, sizeof(buf2), SHORT_DATE_FORMAT, &tm);
switch (c) {
case 'e':
/* try to parse YYYYMMDD first,
* should be a timestamp (seconds since epoch)
*/
memset(&tm, 0, sizeof(tm));
+ printf("yoyoyo %d\n", strptime(optarg, DATE_FORMAT, &tm));
- if (!buf1) {
+ if (!strptime(optarg, DATE_FORMAT, &tm)) {
c = c;
expiration = (uint32_t) mktime_from_utc(&tm);
- } else if (!buf2) {
+ } else if (!strptime(optarg, SHORT_DATE_FORMAT, &tm)) {
expiration = (uint32_t) mktime_from_utc(&tm);
} else {
expiration = atol(optarg);
case 'i':
memset(&tm, 0, sizeof(tm));
- if (!buf1) {
+ if (!strptime(optarg, DATE_FORMAT, &tm)) {
inception = (uint32_t) mktime_from_utc(&tm);
- } else if (!buf2) {
+ } else if (!strptime(optarg, SHORT_DATE_FORMAT, &tm)) {
inception = (uint32_t) mktime_from_utc(&tm);
} else {
inception = atol(optarg);
* See the file LICENSE for the license
*/
+/*
+ * program sequence
+ *
+ * what some secure entry points for diffs in the key listing
+ * use threshold signing to validate the changes
+ * When I change occurs put the new key set in the file
+ * and mail root or somebody else
+ */
+
+/* synopsis
+ * -i <interval in minutes> -m <email address>
+ */
+
+/* file layout
+ *
+ */
+
+
+
#include "config.h"
#include <ldns/dns.h>