]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/p7_enc_c.c
Change functions to ANSI C.
[thirdparty/openssl.git] / crypto / asn1 / p7_enc_c.c
index f98afb51b8d9c06db0dea22c85b346e65961918d..8914d874027394dd1df068045da844dea702e416 100644 (file)
@@ -66,9 +66,7 @@
  * ASN1err(ASN1_F_D2I_PKCS7_ENC_CONTENT,ERR_R_ASN1_LENGTH_MISMATCH);
  */
 
-int i2d_PKCS7_ENC_CONTENT(a,pp)
-PKCS7_ENC_CONTENT *a;
-unsigned char **pp;
+int i2d_PKCS7_ENC_CONTENT(PKCS7_ENC_CONTENT *a, unsigned char **pp)
        {
        M_ASN1_I2D_vars(a);
 
@@ -85,10 +83,8 @@ unsigned char **pp;
        M_ASN1_I2D_finish();
        }
 
-PKCS7_ENC_CONTENT *d2i_PKCS7_ENC_CONTENT(a,pp,length)
-PKCS7_ENC_CONTENT **a;
-unsigned char **pp;
-long length;
+PKCS7_ENC_CONTENT *d2i_PKCS7_ENC_CONTENT(PKCS7_ENC_CONTENT **a,
+            unsigned char **pp, long length)
        {
        M_ASN1_D2I_vars(a,PKCS7_ENC_CONTENT *,PKCS7_ENC_CONTENT_new);
 
@@ -103,7 +99,7 @@ long length;
                ASN1_F_D2I_PKCS7_ENC_CONTENT);
        }
 
-PKCS7_ENC_CONTENT *PKCS7_ENC_CONTENT_new()
+PKCS7_ENC_CONTENT *PKCS7_ENC_CONTENT_new(void)
        {
        PKCS7_ENC_CONTENT *ret=NULL;
        ASN1_CTX c;
@@ -117,8 +113,7 @@ PKCS7_ENC_CONTENT *PKCS7_ENC_CONTENT_new()
        M_ASN1_New_Error(ASN1_F_PKCS7_ENC_CONTENT_NEW);
        }
 
-void PKCS7_ENC_CONTENT_free(a)
-PKCS7_ENC_CONTENT *a;
+void PKCS7_ENC_CONTENT_free(PKCS7_ENC_CONTENT *a)
        {
        if (a == NULL) return;
        ASN1_OBJECT_free(a->content_type);