1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-31 22:42:57 -07:00

Don't export sodium_runtime_get_cpu_features()

This commit is contained in:
Frank Denis 2015-11-01 14:32:42 +01:00
parent 17bcbbbd45
commit 094dac655e
3 changed files with 6 additions and 5 deletions

View File

@ -8,9 +8,6 @@
extern "C" {
#endif
SODIUM_EXPORT
int sodium_runtime_get_cpu_features(void);
SODIUM_EXPORT
int sodium_runtime_has_neon(void);
@ -32,6 +29,10 @@ int sodium_runtime_has_pclmul(void);
SODIUM_EXPORT
int sodium_runtime_has_aesni(void);
/* ------------------------------------------------------------------------- */
int _sodium_runtime_get_cpu_features(void);
#ifdef __cplusplus
}
#endif

View File

@ -14,7 +14,7 @@ sodium_init(void)
if (initialized != 0) {
return 1;
}
sodium_runtime_get_cpu_features();
_sodium_runtime_get_cpu_features();
randombytes_stir();
_sodium_alloc_init();
_crypto_generichash_blake2b_pick_best_implementation();

View File

@ -136,7 +136,7 @@ _sodium_runtime_intel_cpu_features(CPUFeatures * const cpu_features)
}
int
sodium_runtime_get_cpu_features(void)
_sodium_runtime_get_cpu_features(void)
{
int ret = -1;