Manual Pages for UNIX Darwin command on man SSL_get_ex_data_X509_STORE_CTX_idx
MyWebUniversity

Manual Pages for UNIX Darwin command on man SSL_get_ex_data_X509_STORE_CTX_idx

SSLgetexdataX509STORECTXidx(3)OpenSSSLSLgetexdataX509STORECTXidx(3)

NAME

SSLgetexdataX509STORECTXidx - get exdata index to access SSL

structure from X509STORECTX

SYNOPSIS

#include

int SSLgetexdataX509STORECTXidx(void);

DESCRIPTION

SSLgetexdataX509STORECTXidx() returns the index number under which the pointer to the SSL object is stored into the X509STORECTX object. NNOOTTEESS Whenever a X509STORECTX object is created for the verification of the peers certificate during a handshake, a pointer to the SSL object is stored into the X509STORECTX object to identify the connection affected. To retrieve this pointer the X509STORECTXgetexdata() function can be used with the correct index. This index is globally the same for all X509STORECTX objects and can be retrieved using SSLgetexdataX509STORECTXidx(). The index value is set when SSLgetexdataX509STORECTXidx() is first called either by the application program directly or indirectly during other SSL setup functions or during the handshake. The value depends on other index values defined for X509STORECTX objects before the SSL index is created.

RETURN VALUES

>=0 The index value to access the pointer. <0 An error occurred, check the error stack for a detailed error message. EEXXAAMMPPLLEESS The index returned from SSLgetexdataX509STORECTXidx() allows to access the SSL object for the connection to be accessed during the verifycallback() when checking the peers certificate. Please check the example in SSLCTXsetverify(3),

SEE ALSO

ssl(3), SSLCTXsetverify(3), CRYPTOsetexdata(3)

0.9.7l 2001-01-S2S0LgetexdataX509STORECTXidx(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™