Skip to content

Commit a5765d2

Browse files
pattopsjaeckel
authored andcommitted
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)
1 parent 40eea67 commit a5765d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pk/ecc/ecc_ssh_ecdsa_encode_name.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Russ Williams
99
*/
1010

11+
#ifdef LTC_SSH
12+
1113
/**
1214
Curve/OID to SSH+ECDSA name string mapping
1315
@param buffer [out] The destination for the name
@@ -60,3 +62,4 @@ int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key
6062
return err;
6163
}
6264

65+
#endif

0 commit comments

Comments
 (0)