You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2018/06/21 10:52:18 UTC
svn commit: r1833993 - in /apr/apr/trunk: crypto/apr_crypto_prng.c
include/apr_crypto.h test/testcrypto.c
Author: ylavic
Date: Thu Jun 21 10:52:18 2018
New Revision: 1833993
URL: http://svn.apache.org/viewvc?rev=1833993&view=rev
Log:
apr_crypto: follow up to r1833359: consistent apr_crypto_random_ prefix.
Was not for apr_crypto_thread_random_bytes(), so align with other functions.
Modified:
apr/apr/trunk/crypto/apr_crypto_prng.c
apr/apr/trunk/include/apr_crypto.h
apr/apr/trunk/test/testcrypto.c
Modified: apr/apr/trunk/crypto/apr_crypto_prng.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/crypto/apr_crypto_prng.c?rev=1833993&r1=1833992&r2=1833993&view=diff
==============================================================================
--- apr/apr/trunk/crypto/apr_crypto_prng.c (original)
+++ apr/apr/trunk/crypto/apr_crypto_prng.c Thu Jun 21 10:52:18 2018
@@ -231,7 +231,7 @@ APR_DECLARE(apr_status_t) apr_crypto_ran
}
#if APR_HAS_THREADS
-APR_DECLARE(apr_status_t) apr_crypto_thread_random_bytes(void *buf,
+APR_DECLARE(apr_status_t) apr_crypto_random_thread_bytes(void *buf,
apr_size_t len)
{
apr_status_t rv;
Modified: apr/apr/trunk/include/apr_crypto.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_crypto.h?rev=1833993&r1=1833992&r2=1833993&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_crypto.h (original)
+++ apr/apr/trunk/include/apr_crypto.h Thu Jun 21 10:52:18 2018
@@ -582,7 +582,7 @@ APR_DECLARE(apr_status_t) apr_crypto_ran
* called without \ref APR_CRYPTO_PRNG_PER_THREAD,
* any system error (APR_ENOMEM, ...).
*/
-APR_DECLARE(apr_status_t) apr_crypto_thread_random_bytes(void *buf,
+APR_DECLARE(apr_status_t) apr_crypto_random_thread_bytes(void *buf,
apr_size_t len);
#endif
Modified: apr/apr/trunk/test/testcrypto.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testcrypto.c?rev=1833993&r1=1833992&r2=1833993&view=diff
==============================================================================
--- apr/apr/trunk/test/testcrypto.c (original)
+++ apr/apr/trunk/test/testcrypto.c Thu Jun 21 10:52:18 2018
@@ -1635,7 +1635,7 @@ static void *APR_THREAD_FUNC thread_func
unsigned char *randbytes = data;
apr_status_t rv;
- rv = apr_crypto_thread_random_bytes(randbytes, 800);
+ rv = apr_crypto_random_thread_bytes(randbytes, 800);
apr_thread_exit(thd, rv);
return NULL;
@@ -1663,7 +1663,7 @@ static void test_crypto_thread_random(ab
for (i = 0; i < NUM_THREADS; ++i) {
rv = apr_thread_join(&ret, threads[i]);
ABTS_ASSERT(tc, "apr_thread_join failed", rv == APR_SUCCESS);
- ABTS_ASSERT(tc, "apr_crypto_thread_random_bytes failed",
+ ABTS_ASSERT(tc, "apr_crypto_random_thread_bytes failed",
ret == APR_SUCCESS);
}
for (i = 0; i < NUM_THREADS; ++i) {