mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 06:06:51 +02:00
6acb0a628e
This adds the X509 attributes notBefore and notAfter to sslinfo as well as pg_stat_ssl to allow verifying and identifying the validity period of the current client certificate. OpenSSL has APIs for extracting notAfter and notBefore, but they are only supported in recent versions so we have to calculate the dates by hand in order to make this work for the older versions of OpenSSL that we still support. Original patch by Cary Huang with additional hacking by Jacob and myself. Author: Cary Huang <cary.huang@highgo.ca> Co-author: Jacob Champion <jacob.champion@enterprisedb.com> Co-author: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/182b8565486.10af1a86f158715.2387262617218380588@highgo.ca
33 lines
699 B
Meson
33 lines
699 B
Meson
# Copyright (c) 2022-2024, PostgreSQL Global Development Group
|
|
|
|
if not ssl.found()
|
|
subdir_done()
|
|
endif
|
|
|
|
sslinfo_sources = files(
|
|
'sslinfo.c',
|
|
)
|
|
|
|
if host_system == 'windows'
|
|
sslinfo_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
|
|
'--NAME', 'sslinfo',
|
|
'--FILEDESC', 'sslinfo - information about client SSL certificate',])
|
|
endif
|
|
|
|
sslinfo = shared_module('sslinfo',
|
|
sslinfo_sources,
|
|
kwargs: contrib_mod_args + {
|
|
'dependencies': [ssl, contrib_mod_args['dependencies']],
|
|
}
|
|
)
|
|
contrib_targets += sslinfo
|
|
|
|
install_data(
|
|
'sslinfo--1.0--1.1.sql',
|
|
'sslinfo--1.1--1.2.sql',
|
|
'sslinfo--1.2.sql',
|
|
'sslinfo--1.2--1.3.sql',
|
|
'sslinfo.control',
|
|
kwargs: contrib_data_args,
|
|
)
|