diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-01-28 00:16:44 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-01-28 00:16:44 +0000 |
commit | 92c046cac0d64ecd8d53126af3e52db5a6de83cf (patch) | |
tree | a76a2bb1329dfeff82e28942e4d27d965fe10dd7 /crypto/pem/pem_all.c | |
parent | a27598bf7ed1b4ddf3d8f04e064d98d01d18e0a2 (diff) | |
download | openssl-92c046cac0d64ecd8d53126af3e52db5a6de83cf.tar.gz |
Add ASN1 code for netscape certificate sequences.
Diffstat (limited to 'crypto/pem/pem_all.c')
-rw-r--r-- | crypto/pem/pem_all.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/crypto/pem/pem_all.c b/crypto/pem/pem_all.c index d1cda7aabe..92d5a5db4f 100644 --- a/crypto/pem/pem_all.c +++ b/crypto/pem/pem_all.c @@ -486,3 +486,45 @@ DSA *x; } #endif +/* The Netscape Certificate sequence functions */ + +#ifndef NO_FP_API +NETSCAPE_CERT_SEQUENCE *PEM_read_NETSCAPE_CERT_SEQUENCE(fp,x,cb) +FILE *fp; +NETSCAPE_CERT_SEQUENCE **x; +int (*cb)(); + { + return((NETSCAPE_CERT_SEQUENCE *) + PEM_ASN1_read((char *(*)())d2i_NETSCAPE_CERT_SEQUENCE, + PEM_STRING_X509,fp,(char **)x,cb)); + } +#endif + +NETSCAPE_CERT_SEQUENCE *PEM_read_bio_NETSCAPE_CERT_SEQUENCE(bp,x,cb) +BIO *bp; +NETSCAPE_CERT_SEQUENCE **x; +int (*cb)(); + { + return((NETSCAPE_CERT_SEQUENCE *) + PEM_ASN1_read_bio((char *(*)())d2i_NETSCAPE_CERT_SEQUENCE, + PEM_STRING_X509,bp,(char **)x,cb)); + } + +#ifndef NO_FP_API +int PEM_write_NETSCAPE_CERT_SEQUENCE(fp,x) +FILE *fp; +NETSCAPE_CERT_SEQUENCE *x; + { + return(PEM_ASN1_write((int (*)())i2d_NETSCAPE_CERT_SEQUENCE, + PEM_STRING_X509,fp, (char *)x, NULL,NULL,0,NULL)); + } +#endif + +int PEM_write_bio_NETSCAPE_CERT_SEQUENCE(bp,x) +BIO *bp; +NETSCAPE_CERT_SEQUENCE *x; + { + return(PEM_ASN1_write_bio((int (*)())i2d_NETSCAPE_CERT_SEQUENCE, + PEM_STRING_X509,bp, (char *)x, NULL,NULL,0,NULL)); + } + |