Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: James Yonan <james@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
... | ... |
@@ -2265,12 +2265,16 @@ options_postprocess_verify_ce (const struct options *options, const struct conne |
2265 | 2265 |
#endif |
2266 | 2266 |
if (options->pkcs12_file) |
2267 | 2267 |
{ |
2268 |
+#ifdef USE_POLARSSL |
|
2269 |
+ msg(M_USAGE, "Parameter --pkcs12 cannot be used with the PolarSSL version version of OpenVPN."); |
|
2270 |
+#else |
|
2268 | 2271 |
if (options->ca_path) |
2269 | 2272 |
msg(M_USAGE, "Parameter --capath cannot be used when --pkcs12 is also specified."); |
2270 | 2273 |
if (options->cert_file) |
2271 | 2274 |
msg(M_USAGE, "Parameter --cert cannot be used when --pkcs12 is also specified."); |
2272 | 2275 |
if (options->priv_key_file) |
2273 | 2276 |
msg(M_USAGE, "Parameter --key cannot be used when --pkcs12 is also specified."); |
2277 |
+#endif |
|
2274 | 2278 |
} |
2275 | 2279 |
else |
2276 | 2280 |
{ |