hx509_print - Online Linux Manual PageSection : 3
Updated : Tue Nov 15 2022
Source : Version 7.8.0
Note : Heimdal x509 library

NAMEhx509_print − hx509 printing functions

SYNOPSIS

Functionsvoid hx509_print_stdout (void *ctx, const char *fmt, va_list va)
int hx509_oid_sprint (const heim_oid *oid, char **str)
void hx509_oid_print (const heim_oid *oid, hx509_vprint_func func, void *ctx)
void hx509_bitstring_print (const heim_bit_string *b, hx509_vprint_func func, void *ctx)
int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char **s)
int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx *ctx)
void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void *c)
void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)
void hx509_validate_ctx_free (hx509_validate_ctx ctx)
int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)

Detailed Description

Function Documentation

void hx509_bitstring_print (const heim_bit_string * b, hx509_vprint_func func, void * ctx)Print a bitstring using a hx509_vprint_func function​. To print to stdout use hx509_print_stdout()​. Parameters b bit string to print​.
func hx509_vprint_func to print with​.
ctx context variable to hx509_vprint_func function​.

int hx509_cert_keyusage_print (hx509_context context, hx509_cert c, char ** s)Print certificate usage for a certificate to a string​. Parameters context A hx509 context​.
c a certificate print the keyusage for​.
s the return string with the keysage printed in to, free with hx509_xfree()​.
Returns An hx509 error code, see hx509_get_error_string()​.

void hx509_oid_print (const heim_oid * oid, hx509_vprint_func func, void * ctx)Print a oid using a hx509_vprint_func function​. To print to stdout use hx509_print_stdout()​. Parameters oid oid to print
func hx509_vprint_func to print with​.
ctx context variable to hx509_vprint_func function​.

int hx509_oid_sprint (const heim_oid * oid, char ** str)Print a oid to a string​. Parameters oid oid to print
str allocated string, free with hx509_xfree()​.
Returns An hx509 error code, see hx509_get_error_string()​.

void hx509_print_stdout (void * ctx, const char * fmt, va_list va)Helper function to print on stdout for: • hx509_oid_print(), • hx509_bitstring_print(), • hx509_validate_ctx_set_print()​. Parameters ctx the context to the print function​. If the ctx is NULL, stdout is used​.
fmt the printing format​.
va the argumet list​.

int hx509_validate_cert (hx509_context context, hx509_validate_ctx ctx, hx509_cert cert)Validate/Print the status of the certificate​. Parameters context A hx509 context​.
ctx A hx509 validation context​.
cert the cerificate to validate/print​.
Returns An hx509 error code, see hx509_get_error_string()​.

void hx509_validate_ctx_add_flags (hx509_validate_ctx ctx, int flags)Add flags to control the behaivor of the hx509_validate_cert() function​. Parameters ctx A hx509 validation context​.
flags flags to add to the validation context​.
Returns An hx509 error code, see hx509_get_error_string()​.

void hx509_validate_ctx_free (hx509_validate_ctx ctx)Free an hx509 validate context​. Parameters ctx the hx509 validate context to free​.

int hx509_validate_ctx_init (hx509_context context, hx509_validate_ctx * ctx)Allocate a hx509 validation/printing context​. Parameters context A hx509 context​.
ctx a new allocated hx509 validation context, free with hx509_validate_ctx_free()​.
Returns An hx509 error code, see hx509_get_error_string()​.

void hx509_validate_ctx_set_print (hx509_validate_ctx ctx, hx509_vprint_func func, void * c)Set the printing functions for the validation context​. Parameters ctx a hx509 valication context​.
func the printing function to usea​.
c the context variable to the printing function​.
Returns An hx509 error code, see hx509_get_error_string()​.

AuthorGenerated automatically by Doxygen for Heimdal x509 library from the source code​.
0
Johanes Gumabo
Data Size   :   24,653 byte
man-hx509_validate_ctx_add_flags.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 165,312
Visitor ID   :     :  
Visitor IP   :   18.117.184.236   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.