made OQS_STATUS an enum, more type-safe compared to #define

This commit is contained in:
Vlad Gheorghiu 2018-01-31 06:12:52 -05:00
parent d6f2ed01ab
commit 4cc8536df6

View File

@ -4,9 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
typedef int OQS_STATUS;
#define OQS_SUCCESS 0
#define OQS_ERROR -1
typedef enum {OQS_SUCCESS=0, OQS_ERROR=-1} OQS_STATUS;
/* Displays hexadecimal strings */
void OQS_print_hex_string(const char *label, uint8_t *str, size_t len);