diff options
author | Ben Laurie <ben@openssl.org> | 2005-03-31 09:26:39 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2005-03-31 09:26:39 +0000 |
commit | 41a15c4f0f2535591ba9f258cf76119f86477c43 (patch) | |
tree | 6aca3f255f97dc3e9bd18884beeddf7de26fa122 /crypto/ec | |
parent | fea4280a8b1a37bfe1ae6ffaede58722ad71afa1 (diff) |
Give everything prototypes (well, everything that's actually used).
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/ec/ec.h b/crypto/ec/ec.h index b3267df62b..d60b4c1e83 100644 --- a/crypto/ec/ec.h +++ b/crypto/ec/ec.h @@ -277,10 +277,8 @@ typedef struct ecpk_parameters_st ECPKPARAMETERS; EC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len); int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out); -#define d2i_ECPKParameters_bio(bp,x) (EC_GROUP *)ASN1_d2i_bio(NULL, \ - (char *(*)())d2i_ECPKParameters,(bp),(unsigned char **)(x)) -#define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio(i2d_ECPKParameters,(bp), \ - (unsigned char *)(x)) +#define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x) +#define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x) #define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \ (char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x)) #define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \ @@ -351,8 +349,7 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *x); int EC_KEY_print_fp(FILE *fp, const EC_KEY *x, int off); #endif -#define ECParameters_dup(x) (EC_KEY *)ASN1_dup((int (*)())i2d_ECParameters,\ - (char *(*)())d2i_ECParameters,(char *)(x)) +#define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes |