mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
remove unnecessary endianness hack
This commit is contained in:
parent
f944942d12
commit
d85a5969f4
1 changed files with 0 additions and 4 deletions
|
|
@ -118,11 +118,7 @@ static LTC_INLINE int s_looks_like_general_name(const ltc_asn1_list *name)
|
|||
}
|
||||
|
||||
typedef unsigned short int ushort16;
|
||||
#if defined(ENDIAN_LITTLE)
|
||||
#define LTC_NTOHS(y) ( ((ushort16)((y)[0] & 255)<<8) | ((ushort16)((y)[1] & 255)) )
|
||||
#else
|
||||
#define LTC_NTOHS(y) (*((ushort16*)(y)))
|
||||
#endif
|
||||
|
||||
/* RFC 5280, Ch. 4.2.1.6. Subject Alternative Name
|
||||
* [...]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue