]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Fixes compilation error in dst_api.c
authorThomas Markwalder <tmark@isc.org>
Wed, 5 Nov 2014 18:48:40 +0000 (13:48 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 5 Nov 2014 18:48:40 +0000 (13:48 -0500)
    Merger in rt37708.

RELNOTES
dst/dst_api.c

index aad27532099c6b13e4a3ddf6933770a9d6eb9db6..a4c36129f40da626aed3552069400e94d7c2651d 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -77,8 +77,10 @@ by Eric Young (eay@cryptsoft.com).
   [ISC-Bugs #36671]
 
 - Addressed Coverity issues reported as of 07-31-2014:
-  [ISC-Bugs #36712] Corrects Coverity reported "high" impact issues
+  [ISC-Bugs #36712] Corrects Coverity reported "high" impact issues.
   [ISC-Bugs #36933] Corrects Coverity reported "medium" impact issues
+  [ISC-Bugs #37708] Fixes compilation error in dst_api.c seen in older
+  compilers that was introduced by #36712
 
 - Server now supports a failover split value of 256.
   [ISC-Bugs] #36664]
index 30dc66f5e678a436911701103c87c262110a1d28..a77abd2d797fce280797d58f3e29775f37f9e3a4 100644 (file)
@@ -66,7 +66,7 @@ const char *dst_path = "";
 /* internal I/O functions */
 static DST_KEY *dst_s_read_public_key(const char *in_name, 
                                      const unsigned in_id, int in_alg);
-static int dst_s_read_private_key_file(char *name, DST_KEY *pk_key,
+static int dst_s_read_private_key_file(const char *name, DST_KEY *pk_key,
                                       unsigned in_id, int in_alg);
 static int dst_s_write_public_key(const DST_KEY *key);
 static int dst_s_write_private_key(const DST_KEY *key);
@@ -365,7 +365,7 @@ dst_read_key(const char *in_keyname, const unsigned in_id,
                                            0)))
                return (dg_key);
        /* Fill in private key and some fields in the general key structure */
-       if (dst_s_read_private_key_file((char *)(in_keyname), dg_key, pubkey->dk_id,
+       if (dst_s_read_private_key_file(in_keyname, dg_key, pubkey->dk_id,
                                        pubkey->dk_alg) == 0)
                dg_key = dst_free_key(dg_key);
 
@@ -843,7 +843,7 @@ dst_key_to_buffer(DST_KEY *key, u_char *out_buff, unsigned buf_len)
  */
 
 static int
-dst_s_read_private_key_file(char *name, DST_KEY *pk_key, unsigned in_id,
+dst_s_read_private_key_file(const char *name, DST_KEY *pk_key, unsigned in_id,
                            int in_alg)
 {
        int cnt, alg, len, major, minor, file_major, file_minor;