diff options
| author | ryker <> | 1998-10-05 20:13:15 +0000 |
|---|---|---|
| committer | ryker <> | 1998-10-05 20:13:15 +0000 |
| commit | 9e77c62555877f9a64805c49d0dcd7dbfbb40f4e (patch) | |
| tree | 2a6396b738ecede1e1dd3ad84c90e47e21d0bcbd /src/lib/libcrypto/pkcs7/doc | |
| parent | fe5d0717e2760d02faf23bf5a714f17b33ae4abb (diff) | |
| parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
| download | openbsd-9e77c62555877f9a64805c49d0dcd7dbfbb40f4e.tar.gz openbsd-9e77c62555877f9a64805c49d0dcd7dbfbb40f4e.tar.bz2 openbsd-9e77c62555877f9a64805c49d0dcd7dbfbb40f4e.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/pkcs7/doc')
| -rw-r--r-- | src/lib/libcrypto/pkcs7/doc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib/libcrypto/pkcs7/doc b/src/lib/libcrypto/pkcs7/doc new file mode 100644 index 0000000000..d2e8b7b2a3 --- /dev/null +++ b/src/lib/libcrypto/pkcs7/doc | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | int PKCS7_set_content_type(PKCS7 *p7, int type); | ||
| 2 | Call to set the type of PKCS7 object we are working on | ||
| 3 | |||
| 4 | int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey, | ||
| 5 | EVP_MD *dgst); | ||
| 6 | Use this to setup a signer info | ||
| 7 | There will also be functions to add signed and unsigned attributes. | ||
| 8 | |||
| 9 | int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i); | ||
| 10 | Add a signer info to the content. | ||
| 11 | |||
| 12 | int PKCS7_add_certificae(PKCS7 *p7, X509 *x509); | ||
| 13 | int PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509); | ||
| 14 | |||
| 15 | ---- | ||
| 16 | |||
| 17 | p7=PKCS7_new(); | ||
| 18 | PKCS7_set_content_type(p7,NID_pkcs7_signed); | ||
| 19 | |||
| 20 | signer=PKCS7_SINGNER_INFO_new(); | ||
| 21 | PKCS7_SIGNER_INFO_set(signer,x509,pkey,EVP_md5()); | ||
| 22 | PKCS7_add_signer(py,signer); | ||
| 23 | |||
| 24 | we are now setup. | ||
