File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -720,6 +720,14 @@ int extract_algorithm(char **s, char *what)
720
720
return ALG_RSASHA256 ;
721
721
if (strcmp (str_alg , "rsasha512" ) == 0 )
722
722
return ALG_RSASHA512 ;
723
+
724
+ if (strcmp (str_alg , "ecc-gost" ) == 0 )
725
+ return ALG_ECCGOST ;
726
+ if (strcmp (str_alg , "ecdsap256sha256" ) == 0 )
727
+ return ALG_ECDSAP256SHA256 ;
728
+ if (strcmp (str_alg , "ecdsap384sha384" ) == 0 )
729
+ return ALG_ECDSAP384SHA384 ;
730
+
723
731
if (strcmp (str_alg , "privatedns" ) == 0 )
724
732
return ALG_PRIVATEDNS ;
725
733
if (strcmp (str_alg , "privateoid" ) == 0 )
@@ -744,6 +752,12 @@ int algorithm_type(int alg)
744
752
return ALG_RSA_FAMILY ;
745
753
case ALG_RSASHA512 :
746
754
return ALG_RSA_FAMILY ;
755
+ case ALG_ECCGOST :
756
+ return ALG_ECC_FAMILY ;
757
+ case ALG_ECDSAP256SHA256 :
758
+ return ALG_ECC_FAMILY ;
759
+ case ALG_ECDSAP384SHA384 :
760
+ return ALG_ECC_FAMILY ;
747
761
case ALG_PRIVATEDNS :
748
762
return ALG_PRIVATE_FAMILY ;
749
763
case ALG_PRIVATEOID :
Original file line number Diff line number Diff line change 40
40
#define ALG_RSASHA1_NSEC3_SHA1 7
41
41
#define ALG_RSASHA256 8
42
42
#define ALG_RSASHA512 10
43
+ #define ALG_ECCGOST 12
44
+ #define ALG_ECDSAP256SHA256 13
45
+ #define ALG_ECDSAP384SHA384 14
43
46
#define ALG_PRIVATEDNS 253
44
47
#define ALG_PRIVATEOID 254
45
48
46
49
#define ALG_UNSUPPORTED 0
47
50
#define ALG_DSA_FAMILY 1
48
51
#define ALG_RSA_FAMILY 2
49
52
#define ALG_PRIVATE_FAMILY 3
53
+ #define ALG_ECC_FAMILY 4
50
54
51
55
#define RRCAST (t ) struct rr_ ## t *rr = (struct rr_ ## t *)rrv
52
56
You can’t perform that action at this time.
0 commit comments