if (strcasecmp(algname, "RSA") == 0) {
fprintf(stderr, "The use of RSA (RSAMD5) is not "
- "recommended.\nIf you still wish to "
+ "recommended.\nIf you still wish to "
"use RSA (RSAMD5) please specify "
"\"-a RSAMD5\"\n");
if (freeit != NULL)
}
if (!oldstyle && prepub > 0) {
- if (setpub && setact && (activate - prepub) < publish)
- fatal("Activation and publication dates "
- "are closer together than the\n\t"
- "prepublication interval.");
-
- if (!setpub && !setact) {
- setpub = setact = ISC_TRUE;
- publish = now;
- activate = now + prepub;
- } else if (setpub && !setact) {
- setact = ISC_TRUE;
- activate = publish + prepub;
- } else if (setact && !setpub) {
- setpub = ISC_TRUE;
- publish = activate - prepub;
- }
-
- if ((activate - prepub) < now)
- fatal("Time until activation is shorter "
- "than the\n\tprepublication interval.");
- }
+ if (setpub && setact && (activate - prepub) < publish)
+ fatal("Activation and publication dates "
+ "are closer together than the\n\t"
+ "prepublication interval.");
+
+ if (!setpub && !setact) {
+ setpub = setact = ISC_TRUE;
+ publish = now;
+ activate = now + prepub;
+ } else if (setpub && !setact) {
+ setact = ISC_TRUE;
+ activate = publish + prepub;
+ } else if (setact && !setpub) {
+ setpub = ISC_TRUE;
+ publish = activate - prepub;
+ }
+
+ if ((activate - prepub) < now)
+ fatal("Time until activation is shorter "
+ "than the\n\tprepublication interval.");
+ }
} else {
char keystr[DST_KEY_FORMATSIZE];
isc_stdtime_t when;
-.\" Copyright (C) 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
+.\" Copyright (C) 2012-2014 Internet Systems Consortium, Inc. ("ISC")
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
-.\" Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
+.\" Copyright (C) 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
<!--
- - Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
+ - Copyright (C) 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
-.\" Copyright (C) 2009, 2012 Internet Systems Consortium, Inc. ("ISC")
+.\" Copyright (C) 2009, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
<!--
- - Copyright (C) 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
+ - Copyright (C) 2009, 2011, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above