projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/man3/EVP_EncryptInit.pod: add EVP_CIPHER_CTX_rand_key
[openssl.git]
/
test
/
constant_time_test.c
diff --git
a/test/constant_time_test.c
b/test/constant_time_test.c
index 422c04ca27a43192e0ae50f03df118c49a654add..200cb376c5d306cf8789db9568131b476c331574 100644
(file)
--- a/
test/constant_time_test.c
+++ b/
test/constant_time_test.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2014-201
6
The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2014-201
7
The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@
-10,7
+10,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include "
e_os
.h"
+#include "
internal/nelem
.h"
#include "internal/constant_time_locl.h"
#include "testutil.h"
#include "internal/numbers.h"
#include "internal/constant_time_locl.h"
#include "testutil.h"
#include "internal/numbers.h"
@@
-327,11
+327,12
@@
static int test_64values(int i)
return ret;
}
return ret;
}
-
void register
_tests(void)
+
int setup
_tests(void)
{
ADD_TEST(test_sizeofs);
ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values));
ADD_ALL_TESTS(test_signed, OSSL_NELEM(signed_test_values));
{
ADD_TEST(test_sizeofs);
ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values));
ADD_ALL_TESTS(test_signed, OSSL_NELEM(signed_test_values));
- ADD_ALL_TESTS(test_8values, sizeof(test_values_8));
- ADD_ALL_TESTS(test_64values, sizeof(test_values_64));
+ ADD_ALL_TESTS(test_8values, OSSL_NELEM(test_values_8));
+ ADD_ALL_TESTS(test_64values, OSSL_NELEM(test_values_64));
+ return 1;
}
}