comparison keyimport.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 845922d73e9c
children 6aeadee3f16b
comparison
equal deleted inserted replaced
1087:1e486f368ec3 1122:aaf576b27a10
647 if (i == 1) { 647 if (i == 1) {
648 /* Save the details for after we deal with number 2. */ 648 /* Save the details for after we deal with number 2. */
649 modptr = (char *)p; 649 modptr = (char *)p;
650 modlen = len; 650 modlen = len;
651 } else if (i >= 2 && i <= 5) { 651 } else if (i >= 2 && i <= 5) {
652 buf_putstring(blobbuf, p, len); 652 buf_putstring(blobbuf, (const char*)p, len);
653 if (i == 2) { 653 if (i == 2) {
654 buf_putstring(blobbuf, modptr, modlen); 654 buf_putstring(blobbuf, (const char*)modptr, modlen);
655 } 655 }
656 } 656 }
657 } else if (key->type == OSSH_DSA) { 657 } else if (key->type == OSSH_DSA) {
658 /* 658 /*
659 * OpenSSH key order is p, q, g, y, x, 659 * OpenSSH key order is p, q, g, y, x,
660 * we want the same. 660 * we want the same.
661 */ 661 */
662 buf_putstring(blobbuf, p, len); 662 buf_putstring(blobbuf, (const char*)p, len);
663 } 663 }
664 664
665 /* Skip past the number. */ 665 /* Skip past the number. */
666 p += len; 666 p += len;
667 } 667 }