summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-01-14 08:31:03 +0000
committertb <>2022-01-14 08:31:03 +0000
commita5f3c7cca338d4a5c023301b454650520406250c (patch)
tree1b0e111f6a0de29b306b8d0df09062b515dc964c /src
parent82f4ff947f0f70daa31c164267dbb748f7c3c7ee (diff)
downloadopenbsd-a5f3c7cca338d4a5c023301b454650520406250c.tar.gz
openbsd-a5f3c7cca338d4a5c023301b454650520406250c.tar.bz2
openbsd-a5f3c7cca338d4a5c023301b454650520406250c.zip
Move ECDSA_SIG to ecs_locl.h
We can't make ECDSA_METHOD opaque since it is still used in smtpd(8) ok inoguchi jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ecdsa/ecdsa.h11
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_locl.h7
2 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.h b/src/lib/libcrypto/ecdsa/ecdsa.h
index 7b57f534ef..eccca65b5a 100644
--- a/src/lib/libcrypto/ecdsa/ecdsa.h
+++ b/src/lib/libcrypto/ecdsa/ecdsa.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdsa.h,v 1.10 2022/01/14 07:49:49 tb Exp $ */ 1/* $OpenBSD: ecdsa.h,v 1.11 2022/01/14 08:31:03 tb Exp $ */
2/** 2/**
3 * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions 3 * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions
4 * \author Written by Nils Larsch for the OpenSSL project 4 * \author Written by Nils Larsch for the OpenSSL project
@@ -85,10 +85,6 @@ struct ecdsa_method {
85 BIGNUM **r); 85 BIGNUM **r);
86 int (*ecdsa_do_verify)(const unsigned char *dgst, int dgst_len, 86 int (*ecdsa_do_verify)(const unsigned char *dgst, int dgst_len,
87 const ECDSA_SIG *sig, EC_KEY *eckey); 87 const ECDSA_SIG *sig, EC_KEY *eckey);
88#if 0
89 int (*init)(EC_KEY *eckey);
90 int (*finish)(EC_KEY *eckey);
91#endif
92 int flags; 88 int flags;
93 char *app_data; 89 char *app_data;
94}; 90};
@@ -101,11 +97,6 @@ struct ecdsa_method {
101 97
102#define ECDSA_FLAG_FIPS_METHOD 0x1 98#define ECDSA_FLAG_FIPS_METHOD 0x1
103 99
104struct ECDSA_SIG_st {
105 BIGNUM *r;
106 BIGNUM *s;
107};
108
109/** Allocates and initialize a ECDSA_SIG structure 100/** Allocates and initialize a ECDSA_SIG structure
110 * \return pointer to a ECDSA_SIG structure or NULL if an error occurred 101 * \return pointer to a ECDSA_SIG structure or NULL if an error occurred
111 */ 102 */
diff --git a/src/lib/libcrypto/ecdsa/ecs_locl.h b/src/lib/libcrypto/ecdsa/ecs_locl.h
index 0a9f17908b..a53ec379ea 100644
--- a/src/lib/libcrypto/ecdsa/ecs_locl.h
+++ b/src/lib/libcrypto/ecdsa/ecs_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_locl.h,v 1.6 2019/01/19 01:07:00 tb Exp $ */ 1/* $OpenBSD: ecs_locl.h,v 1.7 2022/01/14 08:31:03 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -73,6 +73,11 @@ typedef struct ecdsa_data_st {
73 CRYPTO_EX_DATA ex_data; 73 CRYPTO_EX_DATA ex_data;
74} ECDSA_DATA; 74} ECDSA_DATA;
75 75
76struct ECDSA_SIG_st {
77 BIGNUM *r;
78 BIGNUM *s;
79};
80
76/** ecdsa_check 81/** ecdsa_check
77 * checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure 82 * checks whether ECKEY->meth_data is a pointer to a ECDSA_DATA structure
78 * and if not it removes the old meth_data and creates a ECDSA_DATA structure. 83 * and if not it removes the old meth_data and creates a ECDSA_DATA structure.