Blame doc/functions/gnutls_pkcs12_bag_set_privkey
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_pkcs12_bag_set_privkey} (gnutls_pkcs12_bag_t @var{bag}, gnutls_x509_privkey_t @var{privkey}, const char * @var{password}, unsigned @var{flags})
|
|
Packit Service |
4684c1 |
@var{bag}: The bag
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{privkey}: the private key to be copied.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{password}: the password to protect the key with (may be @code{NULL} )
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{flags}: should be one of @code{gnutls_pkcs_encrypt_flags_t} elements bitwise or'd
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will insert the given private key into the
|
|
Packit Service |
4684c1 |
bag. This is just a wrapper over @code{gnutls_pkcs12_bag_set_data()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} the index of the added bag on success, or a negative
|
|
Packit Service |
4684c1 |
value on failure.
|
|
Packit Service |
4684c1 |
@end deftypefun
|