mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-08 00:03:38 -04:00
made OQS_STATUS an enum, more type-safe compared to #define
This commit is contained in:
parent
d6f2ed01ab
commit
4cc8536df6
@ -4,9 +4,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
typedef int OQS_STATUS;
|
typedef enum {OQS_SUCCESS=0, OQS_ERROR=-1} OQS_STATUS;
|
||||||
#define OQS_SUCCESS 0
|
|
||||||
#define OQS_ERROR -1
|
|
||||||
|
|
||||||
/* Displays hexadecimal strings */
|
/* Displays hexadecimal strings */
|
||||||
void OQS_print_hex_string(const char *label, uint8_t *str, size_t len);
|
void OQS_print_hex_string(const char *label, uint8_t *str, size_t len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user