ddns-confgen.c (254897) | ddns-confgen.c (262706) |
---|---|
1/* | 1/* |
2 * Copyright (C) 2009, 2011 Internet Systems Consortium, Inc. ("ISC") | 2 * Copyright (C) 2009, 2011, 2014 Internet Systems Consortium, Inc. ("ISC") |
3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, --- 85 unchanged lines hidden (view full) --- 96 dns_secalg_t alg = DST_ALG_HMACSHA256; 97 const char *algname = alg_totext(alg); 98 int keysize = 256; 99 int len = 0; 100 int ch; 101 102 result = isc_file_progname(*argv, program, sizeof(program)); 103 if (result != ISC_R_SUCCESS) | 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, --- 85 unchanged lines hidden (view full) --- 96 dns_secalg_t alg = DST_ALG_HMACSHA256; 97 const char *algname = alg_totext(alg); 98 int keysize = 256; 99 int len = 0; 100 int ch; 101 102 result = isc_file_progname(*argv, program, sizeof(program)); 103 if (result != ISC_R_SUCCESS) |
104 memcpy(program, "ddns-confgen", 13); | 104 memmove(program, "ddns-confgen", 13); |
105 progname = program; 106 107 isc_commandline_errprint = ISC_FALSE; 108 109 while ((ch = isc_commandline_parse(argc, argv, 110 "a:hk:Mmr:qs:Vy:z:")) != -1) { 111 switch (ch) { 112 case 'a': --- 146 unchanged lines hidden --- | 105 progname = program; 106 107 isc_commandline_errprint = ISC_FALSE; 108 109 while ((ch = isc_commandline_parse(argc, argv, 110 "a:hk:Mmr:qs:Vy:z:")) != -1) { 111 switch (ch) { 112 case 'a': --- 146 unchanged lines hidden --- |