OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
cms_sd.c File Reference
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/pem.h>
#include <openssl/x509v3.h>
#include <openssl/err.h>
#include <openssl/cms.h>
#include "cms_lcl.h"
#include "asn1_locl.h"

Go to the source code of this file.

Functions

int CMS_SignedData_init (CMS_ContentInfo *cms)
 
int cms_set1_SignerIdentifier (CMS_SignerIdentifier *sid, X509 *cert, int type)
 
int cms_SignerIdentifier_get0_signer_id (CMS_SignerIdentifier *sid, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
int cms_SignerIdentifier_cert_cmp (CMS_SignerIdentifier *sid, X509 *cert)
 
CMS_SignerInfoCMS_add1_signer (CMS_ContentInfo *cms, X509 *signer, EVP_PKEY *pk, const EVP_MD *md, unsigned int flags)
 
 STACK_OF (CMS_SignerInfo)
 
 STACK_OF (X509)
 
void CMS_SignerInfo_set1_signer_cert (CMS_SignerInfo *si, X509 *signer)
 
int CMS_SignerInfo_get0_signer_id (CMS_SignerInfo *si, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
int CMS_SignerInfo_cert_cmp (CMS_SignerInfo *si, X509 *cert)
 
int CMS_set1_signers_certs (CMS_ContentInfo *cms, STACK_OF(X509)*scerts, unsigned int flags)
 
void CMS_SignerInfo_get0_algs (CMS_SignerInfo *si, EVP_PKEY **pk, X509 **signer, X509_ALGOR **pdig, X509_ALGOR **psig)
 
int cms_SignedData_final (CMS_ContentInfo *cms, BIO *chain)
 
int CMS_SignerInfo_sign (CMS_SignerInfo *si)
 
int CMS_SignerInfo_verify (CMS_SignerInfo *si)
 
BIOcms_SignedData_init_bio (CMS_ContentInfo *cms)
 
int CMS_SignerInfo_verify_content (CMS_SignerInfo *si, BIO *chain)
 
int CMS_add_smimecap (CMS_SignerInfo *si, STACK_OF(X509_ALGOR)*algs)
 
int CMS_add_simple_smimecap (STACK_OF(X509_ALGOR)**algs, int algnid, int keysize)
 
int CMS_add_standard_smimecap (STACK_OF(X509_ALGOR)**smcap)
 

Function Documentation

CMS_SignerInfo* CMS_add1_signer ( CMS_ContentInfo cms,
X509 signer,
EVP_PKEY pk,
const EVP_MD md,
unsigned int  flags 
)

Definition at line 300 of file cms_sd.c.

int CMS_add_simple_smimecap ( STACK_OF(X509_ALGOR)**  algs,
int  algnid,
int  keysize 
)

Definition at line 924 of file cms_sd.c.

int CMS_add_smimecap ( CMS_SignerInfo si,
STACK_OF(X509_ALGOR)*  algs 
)

Definition at line 911 of file cms_sd.c.

int CMS_add_standard_smimecap ( STACK_OF(X509_ALGOR)**  smcap)

Definition at line 971 of file cms_sd.c.

int cms_set1_SignerIdentifier ( CMS_SignerIdentifier sid,
X509 cert,
int  type 
)

Definition at line 210 of file cms_sd.c.

int CMS_set1_signers_certs ( CMS_ContentInfo cms,
STACK_OF(X509)*  scerts,
unsigned int  flags 
)

Definition at line 555 of file cms_sd.c.

int cms_SignedData_final ( CMS_ContentInfo cms,
BIO chain 
)

Definition at line 686 of file cms_sd.c.

int CMS_SignedData_init ( CMS_ContentInfo cms)

Definition at line 100 of file cms_sd.c.

BIO* cms_SignedData_init_bio ( CMS_ContentInfo cms)

Definition at line 812 of file cms_sd.c.

int cms_SignerIdentifier_cert_cmp ( CMS_SignerIdentifier sid,
X509 cert 
)

Definition at line 276 of file cms_sd.c.

int cms_SignerIdentifier_get0_signer_id ( CMS_SignerIdentifier sid,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 255 of file cms_sd.c.

int CMS_SignerInfo_cert_cmp ( CMS_SignerInfo si,
X509 cert 
)

Definition at line 550 of file cms_sd.c.

void CMS_SignerInfo_get0_algs ( CMS_SignerInfo si,
EVP_PKEY **  pk,
X509 **  signer,
X509_ALGOR **  pdig,
X509_ALGOR **  psig 
)

Definition at line 606 of file cms_sd.c.

int CMS_SignerInfo_get0_signer_id ( CMS_SignerInfo si,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 543 of file cms_sd.c.

void CMS_SignerInfo_set1_signer_cert ( CMS_SignerInfo si,
X509 signer 
)

Definition at line 529 of file cms_sd.c.

int CMS_SignerInfo_sign ( CMS_SignerInfo si)

Definition at line 702 of file cms_sd.c.

int CMS_SignerInfo_verify ( CMS_SignerInfo si)

Definition at line 769 of file cms_sd.c.

int CMS_SignerInfo_verify_content ( CMS_SignerInfo si,
BIO chain 
)

Definition at line 842 of file cms_sd.c.

STACK_OF ( CMS_SignerInfo  )

Definition at line 492 of file cms_sd.c.

STACK_OF ( X509  )

Definition at line 501 of file cms_sd.c.