1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Define ENOSYS where it is useful

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët 2019-09-12 18:11:21 +00:00
parent 285b34141d
commit 4520c080cc
2 changed files with 8 additions and 8 deletions

View File

@ -16,10 +16,6 @@
#include "private/common.h"
#include "private/sse2_64_32.h"
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(HAVE_TMMINTRIN_H) && defined(HAVE_WMMINTRIN_H)
# ifdef __GNUC__
@ -315,6 +311,10 @@ crypto_aead_aegis256_is_available(void)
#else
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
int
crypto_aead_aegis256_encrypt_detached(unsigned char *c,
unsigned char *mac,

View File

@ -30,10 +30,6 @@
#include <tmmintrin.h>
#include <wmmintrin.h>
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(__INTEL_COMPILER) || defined(_bswap64)
#elif defined(_MSC_VER)
# define _bswap64(a) _byteswap_uint64(a)
@ -919,6 +915,10 @@ crypto_aead_aes256gcm_is_available(void)
#else
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
int
crypto_aead_aes256gcm_encrypt_detached(unsigned char *c,
unsigned char *mac,