fix sm2 compile error (#983)

* fix i2o_SM2CiphertextValue error

* fix i2o_SM2CiphertextValue error
This commit is contained in:
Simon
2020-06-19 20:11:12 +08:00
committed by GitHub
parent 6c67d3a3cf
commit f544e1e45a
2 changed files with 4 additions and 5 deletions

View File

@@ -119,6 +119,10 @@ SM2CiphertextValue *d2i_SM2CiphertextValue_fp(FILE *fp, SM2CiphertextValue **a);
int i2d_SM2CiphertextValue_fp(FILE *fp, SM2CiphertextValue *a);
#endif
int i2o_SM2CiphertextValue(const EC_GROUP *group, const SM2CiphertextValue *cv,
unsigned char **pout);
SM2CiphertextValue *o2i_SM2CiphertextValue(const EC_GROUP *group, const EVP_MD *md,
SM2CiphertextValue **cv, const unsigned char **pin, long len);
int SM2_ciphertext_size(const EC_KEY *ec_key, size_t inlen);

View File

@@ -67,11 +67,6 @@ int main(int argc, char **argv)
# include <openssl/sm2.h>
# include "../crypto/sm2/sm2_lcl.h"
int i2o_SM2CiphertextValue(const EC_GROUP *group, const SM2CiphertextValue *cv,
unsigned char **pout);
SM2CiphertextValue *o2i_SM2CiphertextValue(const EC_GROUP *group, const EVP_MD *md,
SM2CiphertextValue **cv, const unsigned char **pin, long len);
# define VERBOSE 1
RAND_METHOD fake_rand;