summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_asn1.c')
-rw-r--r--src/lib/libcrypto/ec/ec_asn1.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index eb28fa5332..4bd95d6efc 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_asn1.c,v 1.49 2024/04/15 15:41:27 tb Exp $ */ 1/* $OpenBSD: ec_asn1.c,v 1.50 2024/04/15 15:42:23 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -125,14 +125,14 @@ typedef struct ec_parameters_st {
125 ASN1_INTEGER *cofactor; 125 ASN1_INTEGER *cofactor;
126} ECPARAMETERS; 126} ECPARAMETERS;
127 127
128struct ecpk_parameters_st { 128typedef struct ecpk_parameters_st {
129 int type; 129 int type;
130 union { 130 union {
131 ASN1_OBJECT *named_curve; 131 ASN1_OBJECT *named_curve;
132 ECPARAMETERS *parameters; 132 ECPARAMETERS *parameters;
133 ASN1_NULL *implicitlyCA; 133 ASN1_NULL *implicitlyCA;
134 } value; 134 } value;
135} /* ECPKPARAMETERS */ ; 135} ECPKPARAMETERS;
136 136
137/* SEC1 ECPrivateKey */ 137/* SEC1 ECPrivateKey */
138typedef struct ec_privatekey_st { 138typedef struct ec_privatekey_st {
@@ -497,31 +497,31 @@ const ASN1_ITEM ECPKPARAMETERS_it = {
497 .sname = "ECPKPARAMETERS", 497 .sname = "ECPKPARAMETERS",
498}; 498};
499 499
500ECPKPARAMETERS *ECPKPARAMETERS_new(void); 500static ECPKPARAMETERS *ECPKPARAMETERS_new(void);
501void ECPKPARAMETERS_free(ECPKPARAMETERS *a); 501static void ECPKPARAMETERS_free(ECPKPARAMETERS *a);
502ECPKPARAMETERS *d2i_ECPKPARAMETERS(ECPKPARAMETERS **a, const unsigned char **in, long len); 502static ECPKPARAMETERS *d2i_ECPKPARAMETERS(ECPKPARAMETERS **a, const unsigned char **in, long len);
503int i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out); 503static int i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out);
504 504
505ECPKPARAMETERS * 505static ECPKPARAMETERS *
506d2i_ECPKPARAMETERS(ECPKPARAMETERS **a, const unsigned char **in, long len) 506d2i_ECPKPARAMETERS(ECPKPARAMETERS **a, const unsigned char **in, long len)
507{ 507{
508 return (ECPKPARAMETERS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, 508 return (ECPKPARAMETERS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
509 &ECPKPARAMETERS_it); 509 &ECPKPARAMETERS_it);
510} 510}
511 511
512int 512static int
513i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out) 513i2d_ECPKPARAMETERS(const ECPKPARAMETERS *a, unsigned char **out)
514{ 514{
515 return ASN1_item_i2d((ASN1_VALUE *)a, out, &ECPKPARAMETERS_it); 515 return ASN1_item_i2d((ASN1_VALUE *)a, out, &ECPKPARAMETERS_it);
516} 516}
517 517
518ECPKPARAMETERS * 518static ECPKPARAMETERS *
519ECPKPARAMETERS_new(void) 519ECPKPARAMETERS_new(void)
520{ 520{
521 return (ECPKPARAMETERS *)ASN1_item_new(&ECPKPARAMETERS_it); 521 return (ECPKPARAMETERS *)ASN1_item_new(&ECPKPARAMETERS_it);
522} 522}
523 523
524void 524static void
525ECPKPARAMETERS_free(ECPKPARAMETERS *a) 525ECPKPARAMETERS_free(ECPKPARAMETERS *a)
526{ 526{
527 ASN1_item_free((ASN1_VALUE *)a, &ECPKPARAMETERS_it); 527 ASN1_item_free((ASN1_VALUE *)a, &ECPKPARAMETERS_it);