PostgreSQL Source Code
git master
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libpq_testclient.c
Go to the documentation of this file.
1
/*
2
* libpq_testclient.c
3
* A test program for the libpq public API
4
*
5
* Copyright (c) 2022-2024, PostgreSQL Global Development Group
6
*
7
* IDENTIFICATION
8
* src/interfaces/libpq/test/libpq_testclient.c
9
*/
10
11
#include "
postgres_fe.h
"
12
13
#include "
libpq-fe.h
"
14
15
static
void
16
print_ssl_library
()
17
{
18
const
char
*lib =
PQsslAttribute
(NULL,
"library"
);
19
20
if
(!lib)
21
fprintf
(stderr,
"SSL is not enabled\n"
);
22
else
23
printf
(
"%s\n"
, lib);
24
}
25
26
int
27
main
(
int
argc,
char
*argv[])
28
{
29
if
((argc > 1) && !strcmp(argv[1],
"--ssl"
))
30
{
31
print_ssl_library
();
32
return
0;
33
}
34
35
printf
(
"currently only --ssl is supported\n"
);
36
return
1;
37
}
PQsslAttribute
const char * PQsslAttribute(PGconn *conn, const char *attribute_name)
Definition:
fe-secure-openssl.c:1609
libpq-fe.h
main
int main(int argc, char *argv[])
Definition:
libpq_testclient.c:27
print_ssl_library
static void print_ssl_library()
Definition:
libpq_testclient.c:16
fprintf
#define fprintf
Definition:
port.h:242
printf
#define printf(...)
Definition:
port.h:244
postgres_fe.h
src
interfaces
libpq
test
libpq_testclient.c
Generated on Wed Nov 27 2024 00:13:25 for PostgreSQL Source Code by
1.9.1