NetSurf
Functions
ssl_cert.h File Reference

Interface to win32 certificate viewing using nsw32 core windows. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror nsw32_cert_verify (struct nsurl *url, const struct cert_chain *certs, nserror(*cb)(bool proceed, void *pw), void *cbpw)
 Prompt the user to verify a certificate with issuse. More...
 
nserror nsws_create_cert_verify_class (HINSTANCE hinstance)
 Create the ssl viewer window class. More...
 

Detailed Description

Interface to win32 certificate viewing using nsw32 core windows.

Definition in file ssl_cert.h.

Function Documentation

◆ nsw32_cert_verify()

nserror nsw32_cert_verify ( struct nsurl url,
const struct cert_chain certs,
nserror(*)(bool proceed, void *pw)  cb,
void *  cbpw 
)

Prompt the user to verify a certificate with issuse.

Parameters
urlThe URL being verified.
certsThe certificate to be verified
numThe number of certificates to be verified.
cbCallback upon user decision.
cbpwContext pointer passed to cb
Returns
NSERROR_OK or error code if prompt creation failed.

Definition at line 172 of file ssl_cert.c.

References nsw32_corewindow::cb_table, nsw32_corewindow::close, CMD_BTN_H, CMD_BTN_W, nsw32_sslcert_window::core, DLG_MRGN, nsw32_corewindow::draw, hinst, nsw32_sslcert_window::hWnd, IDC_SSLCERT_BTN_ACCEPT, IDC_SSLCERT_BTN_REJECT, nsw32_corewindow::key, nsw32_corewindow::mouse, NSERROR_NOMEM, NSERROR_OK, NSLOG, nsw32_corewindow_init(), nsw32_sslcert_viewer_close(), nsw32_sslcert_viewer_draw(), nsw32_sslcert_viewer_key(), nsw32_sslcert_viewer_mouse(), ShowWindow, nsw32_sslcert_window::ssl_data, sslcert_viewer_create_session_data(), sslcert_viewer_init(), nsw32_corewindow::title, windowclassname_sslcert, and WRN_ICO_H.

Here is the call graph for this function:

◆ nsws_create_cert_verify_class()

nserror nsws_create_cert_verify_class ( HINSTANCE  hinstance)

Create the ssl viewer window class.

Parameters
hinstanceThe application instance
Returns
NSERROR_OK on success or NSERROR_INIT_FAILED if the class creation failed.

Definition at line 444 of file ssl_cert.c.

References NSERROR_INIT_FAILED, NSERROR_OK, nsw32_window_ssl_cert_event_callback(), win_perror(), and windowclassname_sslcert.

Referenced by WinMain().

Here is the call graph for this function:
Here is the caller graph for this function: