mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
update copyright notice
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
* $Id: dst_api.c,v 1.62 2011/08/18 17:41:54 marka Exp $
|
* $Id: dst_api.c,v 1.63 2011/08/18 23:46:34 tbox Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
@@ -1580,7 +1580,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
|
|||||||
|
|
||||||
isc_buffer_usedregion(&classb, &r);
|
isc_buffer_usedregion(&classb, &r);
|
||||||
if ((unsigned)isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
|
if ((unsigned)isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
|
||||||
ret = DST_R_WRITEERROR;
|
ret = DST_R_WRITEERROR;
|
||||||
|
|
||||||
if ((type & DST_TYPE_KEY) != 0)
|
if ((type & DST_TYPE_KEY) != 0)
|
||||||
fprintf(fp, " KEY ");
|
fprintf(fp, " KEY ");
|
||||||
@@ -1589,7 +1589,7 @@ write_public_key(const dst_key_t *key, int type, const char *directory) {
|
|||||||
|
|
||||||
isc_buffer_usedregion(&textb, &r);
|
isc_buffer_usedregion(&textb, &r);
|
||||||
if ((unsigned)isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
|
if ((unsigned)isc_util_fwrite(r.base, 1, r.length, fp) != r.length)
|
||||||
ret = DST_R_WRITEERROR;
|
ret = DST_R_WRITEERROR;
|
||||||
|
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
fflush(fp);
|
fflush(fp);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Portions Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
|
* Portions Copyright (C) 2004-2011 Internet Systems Consortium, Inc. ("ISC")
|
||||||
* Portions Copyright (C) 1999-2002 Internet Software Consortium.
|
* Portions Copyright (C) 1999-2002 Internet Software Consortium.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
/*%
|
/*%
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
* $Id: dst_parse.c,v 1.28 2011/08/18 04:52:35 marka Exp $
|
* $Id: dst_parse.c,v 1.29 2011/08/18 23:46:35 tbox Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -641,7 +641,7 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
|
|||||||
}
|
}
|
||||||
isc_buffer_usedregion(&b, &r);
|
isc_buffer_usedregion(&b, &r);
|
||||||
|
|
||||||
fprintf(fp, "%s %.*s\n", s, (int)r.length, r.base);
|
fprintf(fp, "%s %.*s\n", s, (int)r.length, r.base);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add the metadata tags */
|
/* Add the metadata tags */
|
||||||
@@ -659,15 +659,15 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
|
|||||||
|
|
||||||
isc_buffer_init(&b, buffer, sizeof(buffer));
|
isc_buffer_init(&b, buffer, sizeof(buffer));
|
||||||
result = dns_time32_totext(when, &b);
|
result = dns_time32_totext(when, &b);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return (DST_R_INVALIDPRIVATEKEY);
|
return (DST_R_INVALIDPRIVATEKEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
isc_buffer_usedregion(&b, &r);
|
isc_buffer_usedregion(&b, &r);
|
||||||
|
|
||||||
fprintf(fp, "%s %.*s\n", timetags[i], (int)r.length,
|
fprintf(fp, "%s %.*s\n", timetags[i], (int)r.length,
|
||||||
r.base);
|
r.base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user