Skip to content

Commit bdacd06

Browse files
committed
Add. Key type flags
1 parent bc61143 commit bdacd06

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/lceasy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,9 @@ static int lcurl_ssh_key_callback(
20842084
lua_settop(L, top);
20852085

20862086
switch (ret)
2087+
#if LCURL_CURL_VER_GE(7,73,0)
20872088
case CURLKHSTAT_FINE_REPLACE:
2089+
#endif
20882090
case CURLKHSTAT_FINE_ADD_TO_FILE:
20892091
case CURLKHSTAT_FINE:
20902092
case CURLKHSTAT_REJECT:

src/lcflags.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,27 @@ FLG_ENTRY(AUTH_NTLM )
1111
FLG_ENTRY(AUTH_DIGEST_IE )
1212
#endif
1313
#if LCURL_CURL_VER_GE(7,19,6)
14-
FLG_ENTRY(KHSTAT_FINE_REPLACE )
1514
FLG_ENTRY(KHSTAT_FINE_ADD_TO_FILE )
1615
FLG_ENTRY(KHSTAT_FINE )
1716
FLG_ENTRY(KHSTAT_REJECT )
1817
FLG_ENTRY(KHSTAT_DEFER )
19-
FLG_ENTRY(KHMATCH_OK )
20-
FLG_ENTRY(KHMATCH_MISMATCH )
18+
FLG_ENTRY(KHMATCH_OK )
19+
FLG_ENTRY(KHMATCH_MISMATCH )
2120
FLG_ENTRY(KHMATCH_MISSING )
21+
FLG_ENTRY(KHTYPE_RSA1 )
22+
FLG_ENTRY(KHTYPE_RSA )
23+
FLG_ENTRY(KHTYPE_DSS )
24+
FLG_ENTRY(KHTYPE_ECDSA )
25+
FLG_ENTRY(KHTYPE_ED25519 )
26+
#endif
27+
#if LCURL_CURL_VER_GE(7,58,0)
28+
FLG_ENTRY(KHTYPE_ECDSA)
29+
FLG_ENTRY(KHTYPE_ED25519)
30+
#endif
31+
#if LCURL_CURL_VER_GE(7,73,0)
32+
FLG_ENTRY(KHSTAT_FINE_REPLACE )
2233
#endif
34+
2335
#if LCURL_CURL_VER_GE(7,22,0)
2436
FLG_ENTRY(AUTH_NTLM_WB )
2537
#endif

0 commit comments

Comments
 (0)