Barrelfish
Functions
ssl_cert.c File Reference

Functions

 STACK_OF (X509_NAME)
 
int SSL_add_file_cert_subjects_to_stack (STACK_OF(X509_NAME)*stack, const char *file)
 
int SSL_add_dir_cert_subjects_to_stack (STACK_OF(X509_NAME)*stack, const char *dir)
 

Function Documentation

int SSL_add_dir_cert_subjects_to_stack ( STACK_OF(X509_NAME)*  stack,
const char *  dir 
)

Add a directory of certs to a stack.

Parameters
stackthe stack to append to.
dirthe directory to append from. All files in this directory will be examined as potential certs. Any that are acceptable to SSL_add_dir_cert_subjects_to_stack() that are not already in the stack will be included.
Returns
1 for success, 0 for failure. Note that in the case of failure some certs may have been added to stack.
int SSL_add_file_cert_subjects_to_stack ( STACK_OF(X509_NAME)*  stack,
const char *  file 
)

Add a file of certs to a stack.

Parameters
stackthe stack to add to.
filethe file to add from. All certs in this file that are not already in the stack will be added.
Returns
1 for success, 0 for failure. Note that in the case of failure some certs may have been added to stack.
STACK_OF ( X509_NAME  )

Load CA certs from a file into a ::STACK. Note that it is somewhat misnamed; it doesn't really have anything to do with clients (except that a common use for a stack of CAs is to send it to the client). Actually, it doesn't have much to do with CAs, either, since it will load any old cert.

Parameters
filethe file containing one or more certs.
Returns
a ::STACK containing the certs.