summaryrefslogtreecommitdiff
path: root/lib/algorithms.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithms.h')
-rw-r--r--lib/algorithms.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/algorithms.h b/lib/algorithms.h
index 468a0c8e96..d105b3cd68 100644
--- a/lib/algorithms.h
+++ b/lib/algorithms.h
@@ -34,6 +34,10 @@
#define GNUTLS_FALLBACK_SCSV_MAJOR 0x56
#define GNUTLS_FALLBACK_SCSV_MINOR 0x00
+#define IS_GOSTEC(x) (((x)==GNUTLS_PK_GOST_01) || \
+ ((x)==GNUTLS_PK_GOST_12_256)|| \
+ ((x)==GNUTLS_PK_GOST_12_512))
+
#define IS_EC(x) (((x)==GNUTLS_PK_ECDSA)||((x)==GNUTLS_PK_ECDH_X25519)||((x)==GNUTLS_PK_EDDSA_ED25519))
#define SIG_SEM_PRE_TLS12 (1<<1)
@@ -406,6 +410,7 @@ typedef struct gnutls_ecc_curve_entry_st {
gnutls_pk_algorithm_t pk;
unsigned size; /* the size in bytes */
unsigned sig_size; /* the size of curve signatures in bytes (EdDSA) */
+ unsigned gost_curve;
} gnutls_ecc_curve_entry_st;
const gnutls_ecc_curve_entry_st