OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
example.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/pkcs7.h>
#include <openssl/asn1_mac.h>
#include <openssl/x509.h>

Go to the source code of this file.

Functions

int add_signed_time (PKCS7_SIGNER_INFO *si)
 
ASN1_UTCTIMEget_signed_time (PKCS7_SIGNER_INFO *si)
 
void add_signed_string (PKCS7_SIGNER_INFO *si, char *str)
 
int get_signed_string (PKCS7_SIGNER_INFO *si, char *buf, int len)
 
int add_signed_seq2string (PKCS7_SIGNER_INFO *si, char *str1, char *str2)
 
int get_signed_seq2string (PKCS7_SIGNER_INFO *si, char **str1, char **str2)
 
X509_ATTRIBUTEcreate_time (void)
 
ASN1_UTCTIMEsk_get_time (STACK_OF(X509_ATTRIBUTE)*sk)
 
X509_ATTRIBUTEcreate_string (char *str)
 
int sk_get_string (STACK_OF(X509_ATTRIBUTE)*sk, char *buf, int len)
 
X509_ATTRIBUTEadd_seq2string (PKCS7_SIGNER_INFO *si, char *str1, char *str2)
 
int sk_get_seq2string (STACK_OF(X509_ATTRIBUTE)*sk, char **str1, char **str2)
 

Function Documentation

X509_ATTRIBUTE* add_seq2string ( PKCS7_SIGNER_INFO si,
char *  str1,
char *  str2 
)

Definition at line 238 of file example.c.

int add_signed_seq2string ( PKCS7_SIGNER_INFO si,
char *  str1,
char *  str2 
)

Definition at line 75 of file example.c.

void add_signed_string ( PKCS7_SIGNER_INFO si,
char *  str 
)

Definition at line 32 of file example.c.

int add_signed_time ( PKCS7_SIGNER_INFO si)

Definition at line 8 of file example.c.

X509_ATTRIBUTE* create_string ( char *  str)

Definition at line 192 of file example.c.

X509_ATTRIBUTE* create_time ( void  )

Definition at line 167 of file example.c.

int get_signed_seq2string ( PKCS7_SIGNER_INFO si,
char **  str1,
char **  str2 
)

Definition at line 115 of file example.c.

int get_signed_string ( PKCS7_SIGNER_INFO si,
char *  buf,
int  len 
)

Definition at line 47 of file example.c.

ASN1_UTCTIME* get_signed_time ( PKCS7_SIGNER_INFO si)

Definition at line 20 of file example.c.

int sk_get_seq2string ( STACK_OF(X509_ATTRIBUTE)*  sk,
char **  str1,
char **  str2 
)

Definition at line 279 of file example.c.

int sk_get_string ( STACK_OF(X509_ATTRIBUTE)*  sk,
char *  buf,
int  len 
)

Definition at line 209 of file example.c.

ASN1_UTCTIME* sk_get_time ( STACK_OF(X509_ATTRIBUTE)*  sk)

Definition at line 180 of file example.c.