mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Fix unit-tests when no-srp configured
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3274)
This commit is contained in:
parent
58e754fcb8
commit
b6e3250671
@ -8,22 +8,15 @@
|
||||
*/
|
||||
|
||||
#include <openssl/opensslconf.h>
|
||||
# include "testutil.h"
|
||||
|
||||
#ifdef OPENSSL_NO_SRP
|
||||
|
||||
# include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printf("No SRP support\n");
|
||||
return (0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
# include <openssl/srp.h>
|
||||
# include <openssl/rand.h>
|
||||
# include <openssl/err.h>
|
||||
# include "testutil.h"
|
||||
|
||||
static void showbn(const char *name, const BIGNUM *bn)
|
||||
{
|
||||
@ -276,10 +269,14 @@ static int run_srp_tests(void)
|
||||
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
void register_tests(void)
|
||||
{
|
||||
#ifdef OPENSSL_NO_SRP
|
||||
printf("No SRP support\n");
|
||||
#else
|
||||
ADD_TEST(run_srp_tests);
|
||||
ADD_TEST(run_srp_kat);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user