diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/x509v3/v3_bcons.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/x509v3/v3_bcons.c')
-rw-r--r-- | crypto/x509v3/v3_bcons.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/crypto/x509v3/v3_bcons.c b/crypto/x509v3/v3_bcons.c index ddd5a66a20..6e2231f15c 100644 --- a/crypto/x509v3/v3_bcons.c +++ b/crypto/x509v3/v3_bcons.c @@ -94,9 +94,7 @@ NULL * ASN1err(ASN1_F_D2I_BASIC_CONSTRAINTS,ERR_R_MALLOC_FAILURE); */ -int i2d_BASIC_CONSTRAINTS(a,pp) -BASIC_CONSTRAINTS *a; -unsigned char **pp; +int i2d_BASIC_CONSTRAINTS(BASIC_CONSTRAINTS *a, unsigned char **pp) { M_ASN1_I2D_vars(a); if(a->ca) M_ASN1_I2D_len (a->ca, i2d_ASN1_BOOLEAN); @@ -109,7 +107,7 @@ unsigned char **pp; M_ASN1_I2D_finish(); } -BASIC_CONSTRAINTS *BASIC_CONSTRAINTS_new() +BASIC_CONSTRAINTS *BASIC_CONSTRAINTS_new(void) { BASIC_CONSTRAINTS *ret=NULL; ASN1_CTX c; @@ -120,10 +118,8 @@ BASIC_CONSTRAINTS *BASIC_CONSTRAINTS_new() M_ASN1_New_Error(ASN1_F_BASIC_CONSTRAINTS_NEW); } -BASIC_CONSTRAINTS *d2i_BASIC_CONSTRAINTS(a,pp,length) -BASIC_CONSTRAINTS **a; -unsigned char **pp; -long length; +BASIC_CONSTRAINTS *d2i_BASIC_CONSTRAINTS(BASIC_CONSTRAINTS **a, + unsigned char **pp, long length) { M_ASN1_D2I_vars(a,BASIC_CONSTRAINTS *,BASIC_CONSTRAINTS_new); M_ASN1_D2I_Init(); @@ -136,28 +132,23 @@ long length; M_ASN1_D2I_Finish(a, BASIC_CONSTRAINTS_free, ASN1_F_D2I_BASIC_CONSTRAINTS); } -void BASIC_CONSTRAINTS_free(a) -BASIC_CONSTRAINTS *a; +void BASIC_CONSTRAINTS_free(BASIC_CONSTRAINTS *a) { if (a == NULL) return; ASN1_INTEGER_free (a->pathlen); Free ((char *)a); } -static STACK *i2v_BASIC_CONSTRAINTS(method, bcons, extlist) -X509V3_EXT_METHOD *method; -BASIC_CONSTRAINTS *bcons; -STACK *extlist; +static STACK *i2v_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, + BASIC_CONSTRAINTS *bcons, STACK *extlist) { X509V3_add_value_bool("CA", bcons->ca, &extlist); X509V3_add_value_int("pathlen", bcons->pathlen, &extlist); return extlist; } -static BASIC_CONSTRAINTS *v2i_BASIC_CONSTRAINTS(method, ctx, values) -X509V3_EXT_METHOD *method; -X509V3_CTX *ctx; -STACK *values; +static BASIC_CONSTRAINTS *v2i_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method, + X509V3_CTX *ctx, STACK *values) { BASIC_CONSTRAINTS *bcons=NULL; CONF_VALUE *val; |