Browse Source

make ecc_ssh_ecdsa_encode_name conditional on LTC_SSH

This fixes build breakage when LTC_MECC is not defined:

src/pk/ecc/ecc_ssh_ecdsa_encode_name.c:20:74: error: unknown type name 'ecc_key'
   20 | int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key *key)
Patrick Oppenlander 5 years ago
parent
commit
a5765d2b61
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/pk/ecc/ecc_ssh_ecdsa_encode_name.c

+ 3 - 0
src/pk/ecc/ecc_ssh_ecdsa_encode_name.c

@@ -8,6 +8,8 @@
    Russ Williams
    Russ Williams
 */
 */
 
 
+#ifdef LTC_SSH
+
 /**
 /**
   Curve/OID to SSH+ECDSA name string mapping
   Curve/OID to SSH+ECDSA name string mapping
   @param buffer    [out] The destination for the name
   @param buffer    [out] The destination for the name
@@ -60,3 +62,4 @@ error:
    return err;
    return err;
 }
 }
 
 
+#endif