gnutls_pubkey_export



gnutls_pubkey_export

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURNS
SINCE
REPORTING BUGS
COPYRIGHT
SEE ALSO

NAME

gnutls_pubkey_export − API function

SYNOPSIS

#include <gnutls/gnutls.h>

int gnutls_pubkey_export(gnutls_pubkey_t key, gnutls_x509_crt_fmt_t format, void * output_data, size_t * output_data_size);

ARGUMENTS

gnutls_pubkey_t key

Holds the certificate

gnutls_x509_crt_fmt_t format

the format of output params. One of PEM or DER.

void * output_data

will contain a certificate PEM or DER encoded

size_t * output_data_size

holds the size of output_data (and will be replaced by the actual size of parameters)

DESCRIPTION

This function will export the certificate to DER or PEM format.

If the buffer provided is not long enough to hold the output, then *output_data_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.

If the structure is PEM encoded, it will have a header of "BEGIN CERTIFICATE".

RETURNS

In case of failure a negative error code will be returned, and 0 on success.

SINCE

2.12.0

REPORTING BUGS

Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software: http://www.gnu.org/gethelp/

COPYRIGHT

Copyright © 2008 Free Software Foundation.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

SEE ALSO

The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site, the command

info gnutls

should give you access to the complete manual.



More Linux Commands

manpages/gnutls_anon_free_server_credentials.3.html
gnutls_anon_free_server_credentials(3) - API function.......
gnutls_anon_free_server_credentials.3 - This structure is complex enough to manipulate directly thus this helper function is provided in order to free (dealloca

manpages/perl5181delta.1.html
perl5181delta(1) what is new for perl v5.18.1 (Man Page)....
This document describes differences between the 5.18.0 release and the 5.18.1 release. If you are upgrading from an earlier release such as 5.16.0, first read p

manpages/Tcl_FSAccess.3.html
Tcl_FSAccess(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

manpages/glMultiTexCoord4dARB.3gl.html
glMultiTexCoord4dARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1

manpages/Devel::SelfStubber.3pm.html
Devel::SelfStubber(3pm) - generate stubs for a SelfLoading m
Devel::SelfStubber prints the stubs you need to put in the module before the __DATA__ token (or you can get it to print the entire module with stubs correctly p

manpages/gnutls_pkcs11_delete_url.3.html
gnutls_pkcs11_delete_url(3) - API function - Linux man page
This function will delete objects matching the given URL. Note that not all tokens support the delete operation. RETURNS On success, the number of objects delet

manpages/brk.2.html
brk(2) - change data segment size - Linux manual page.......
brk() and sbrk() change the location of the program break, which defines the end of the processs data segment (i.e., the program break is the first location aft

manpages/Tcl_SetWideIntObj.3.html
Tcl_SetWideIntObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that &amp;#9474; hold integral values. &amp;#9474; The different routines exist to accommodate differe

manpages/pnmquantall.1.html
pnmquantall(1) run Pnmquant on a bunch of files all at once,
This program is part of Netpbm(1) pnmquantall takes a bunch of Netpbm image files as input, chooses ncolors colors to best represent all of the images, maps the

manpages/Tcl_GetReturnOptions.3.html
Tcl_GetReturnOptions(3) - retrieve or record information abo
The Tcl_SetReturnOptions and Tcl_GetReturnOptions routines expose the &amp;#9474; same capabilities as the return and catch commands, respectively, in &amp;#9474; the f

manpages/statvfs.3.html
statvfs(3) - get file system statistics - Linux manual page
The function statvfs() returns information about a mounted filesystem. path is the pathname of any file within the mounted filesystem. buf is a pointer to a sta

manpages/pkey.1ssl.html
pkey(1ssl) public or private key processing tool (Man Page)
The pkey command processes public or private keys. They can be converted between various forms and their components printed out. COMMAND OPTIONS -inform DER|PEM





We can't live, work or learn in freedom unless the software we use is free.