]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - import.c
Const-correctness in public-key functions.
[PuTTY.git] / import.c
index 92141d3ab1b282f3cf5ccda740a2af2be37a2251..5481ce8f141a80c5d12248832381261579f745eb 100644 (file)
--- a/import.c
+++ b/import.c
@@ -1628,7 +1628,7 @@ struct ssh2_userkey *openssh_new_read(const Filename *filename,
 
     retkey = NULL;
     for (key_index = 0; key_index < key->nkeys; key_index++) {
-        unsigned char *thiskey;
+        const unsigned char *thiskey;
         int thiskeylen;
 
         /*
@@ -1660,7 +1660,7 @@ struct ssh2_userkey *openssh_new_read(const Filename *filename,
             goto error;
         }
 
-        thiskey = (unsigned char *)priv;
+        thiskey = priv;
 
         /*
          * Skip over the pieces of key.