#include "postgres.h"#include "fmgr.h"#include "utils/numeric.h"#include "libpq/libpq-be.h"#include "miscadmin.h"#include "utils/builtins.h"#include "mb/pg_wchar.h"#include <openssl/x509.h>#include <openssl/asn1.h>
Go to the source code of this file.
Variables | |
| PG_MODULE_MAGIC | |
| Datum ASN1_STRING_to_text | ( | ASN1_STRING * | str | ) |
Definition at line 142 of file sslinfo.c.
References cstring_to_text(), GetDatabaseEncoding(), pfree(), pg_do_encoding_conversion(), PG_RETURN_TEXT_P, and PG_UTF8.
Referenced by X509_NAME_field_to_text().
| PG_FUNCTION_INFO_V1 | ( | ssl_is_used | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_version | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_cipher | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_client_cert_present | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_client_serial | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_client_dn_field | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_issuer_field | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_client_dn | ) |
| PG_FUNCTION_INFO_V1 | ( | ssl_issuer_dn | ) |
| Datum ssl_cipher | ( | PG_FUNCTION_ARGS | ) |
Definition at line 71 of file sslinfo.c.
References cstring_to_text(), MyProcPort, NULL, PG_RETURN_NULL, and PG_RETURN_TEXT_P.
| Datum ssl_client_cert_present | ( | PG_FUNCTION_ARGS | ) |
Definition at line 87 of file sslinfo.c.
References MyProcPort, NULL, and PG_RETURN_BOOL.
| Datum ssl_client_dn | ( | PG_FUNCTION_ARGS | ) |
Definition at line 349 of file sslinfo.c.
References MyProcPort, PG_RETURN_NULL, and X509_NAME_to_text().
| Datum ssl_client_dn_field | ( | PG_FUNCTION_ARGS | ) |
Definition at line 227 of file sslinfo.c.
References MyProcPort, PG_GETARG_TEXT_P, PG_RETURN_NULL, and X509_NAME_field_to_text().
| Datum ssl_client_serial | ( | PG_FUNCTION_ARGS | ) |
Definition at line 103 of file sslinfo.c.
References CStringGetDatum, DirectFunctionCall3, Int32GetDatum, MyProcPort, NULL, numeric_in(), ObjectIdGetDatum, PG_RETURN_NULL, and port.
| Datum ssl_is_used | ( | PG_FUNCTION_ARGS | ) |
Definition at line 47 of file sslinfo.c.
References MyProcPort, NULL, and PG_RETURN_BOOL.
| Datum ssl_issuer_dn | ( | PG_FUNCTION_ARGS | ) |
Definition at line 368 of file sslinfo.c.
References MyProcPort, PG_RETURN_NULL, and X509_NAME_to_text().
| Datum ssl_issuer_field | ( | PG_FUNCTION_ARGS | ) |
Definition at line 262 of file sslinfo.c.
References MyProcPort, PG_GETARG_TEXT_P, PG_RETURN_NULL, and X509_NAME_field_to_text().
| Datum ssl_version | ( | PG_FUNCTION_ARGS | ) |
Definition at line 58 of file sslinfo.c.
References cstring_to_text(), MyProcPort, NULL, PG_RETURN_NULL, and PG_RETURN_TEXT_P.
Definition at line 186 of file sslinfo.c.
References ASN1_STRING_to_text(), ereport, errcode(), errmsg(), ERROR, pfree(), and text_to_cstring().
Referenced by ssl_client_dn_field(), and ssl_issuer_field().
| Datum X509_NAME_to_text | ( | X509_NAME * | name | ) |
Definition at line 291 of file sslinfo.c.
References cstring_to_text(), GetDatabaseEncoding(), i, pfree(), pg_do_encoding_conversion(), PG_RETURN_TEXT_P, and PG_UTF8.
Referenced by ssl_client_dn(), and ssl_issuer_dn().