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:
parent
17bcbbbd45
commit
094dac655e
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user