mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
Check for EVP_PKEY_EC before using it. It isn't present in the
MacOSX10.4u SDK.
This commit is contained in:
@@ -383,8 +383,10 @@ static const char *pkey_type_to_string(int type)
|
|||||||
return "dsa";
|
return "dsa";
|
||||||
case EVP_PKEY_DH:
|
case EVP_PKEY_DH:
|
||||||
return "dh";
|
return "dh";
|
||||||
|
#ifdef EVP_PKEY_EC
|
||||||
case EVP_PKEY_EC:
|
case EVP_PKEY_EC:
|
||||||
return "ec";
|
return "ec";
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user