Fix no-dh
The new serializer code broke no-dh builds so we add some more guards to fix it. Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/10644)
This commit is contained in:
parent
501fcfb8cf
commit
285c691304
3 changed files with 9 additions and 1 deletions
|
@ -139,6 +139,7 @@ static int test_fromdata_rsa(void)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifndef OPENSSL_NO_DH
|
||||
/* Array indexes used in test_fromdata_dh */
|
||||
#define PRIV_KEY 0
|
||||
#define PUB_KEY 1
|
||||
|
@ -187,10 +188,13 @@ static int test_fromdata_dh(void)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
int setup_tests(void)
|
||||
{
|
||||
ADD_TEST(test_fromdata_rsa);
|
||||
#ifndef OPENSSL_NO_DH
|
||||
ADD_TEST(test_fromdata_dh);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue