keyhole logo

Functions
hx509 certificate selecting functions

Functions

int hx509_peer_info_add_cms_alg (hx509_context, hx509_peer_info, const AlgorithmIdentifier *)
 
int hx509_peer_info_alloc (hx509_context, hx509_peer_info *)
 
void hx509_peer_info_free (hx509_peer_info)
 
int hx509_peer_info_set_cert (hx509_peer_info, hx509_cert)
 
int hx509_peer_info_set_cms_algs (hx509_context, hx509_peer_info, const AlgorithmIdentifier *, size_t)
 

Detailed Description

Function Documentation

int hx509_peer_info_add_cms_alg ( hx509_context  context,
hx509_peer_info  peer,
const AlgorithmIdentifier *  val 
)

Add an additional algorithm that the peer supports.

Parameters
contextA hx509 context.
peerthe peer to set the new algorithms for
valan AlgorithmsIdentier to add
Returns
An hx509 error code, see hx509_get_error_string().
int hx509_peer_info_alloc ( hx509_context  context,
hx509_peer_info *  peer 
)

Allocate a new peer info structure an init it to default values.

Parameters
contextA hx509 context.
peerreturn an allocated peer, free with hx509_peer_info_free().
Returns
An hx509 error code, see hx509_get_error_string().
void hx509_peer_info_free ( hx509_peer_info  peer)

Free a peer info structure.

Parameters
peerpeer info to be freed.
int hx509_peer_info_set_cert ( hx509_peer_info  peer,
hx509_cert  cert 
)

Set the certificate that remote peer is using.

Parameters
peerpeer info to update
certcerificate of the remote peer.
Returns
An hx509 error code, see hx509_get_error_string().
int hx509_peer_info_set_cms_algs ( hx509_context  context,
hx509_peer_info  peer,
const AlgorithmIdentifier *  val,
size_t  len 
)

Set the algorithms that the peer supports.

Parameters
contextA hx509 context.
peerthe peer to set the new algorithms for
valarray of supported AlgorithmsIdentiers
lenlength of array val.
Returns
An hx509 error code, see hx509_get_error_string().

Generated on Mon Nov 28 2016 22:24:07 for Heimdalx509library by doxygen 1.8.11