@@ -31,9 +31,10 @@ Datum ssl_client_dn_field(PG_FUNCTION_ARGS);
31
31
Datum ssl_issuer_field (PG_FUNCTION_ARGS );
32
32
Datum ssl_client_dn (PG_FUNCTION_ARGS );
33
33
Datum ssl_issuer_dn (PG_FUNCTION_ARGS );
34
- Datum X509_NAME_field_to_text (X509_NAME * name , text * fieldName );
35
- Datum X509_NAME_to_text (X509_NAME * name );
36
- Datum ASN1_STRING_to_text (ASN1_STRING * str );
34
+
35
+ static Datum X509_NAME_field_to_text (X509_NAME * name , text * fieldName );
36
+ static Datum X509_NAME_to_text (X509_NAME * name );
37
+ static Datum ASN1_STRING_to_text (ASN1_STRING * str );
37
38
38
39
39
40
/*
@@ -51,7 +52,7 @@ ssl_is_used(PG_FUNCTION_ARGS)
51
52
52
53
53
54
/*
54
- * Returns SSL cipher currently in use.
55
+ * Returns SSL version currently in use.
55
56
*/
56
57
PG_FUNCTION_INFO_V1 (ssl_version );
57
58
Datum
@@ -77,7 +78,7 @@ ssl_cipher(PG_FUNCTION_ARGS)
77
78
78
79
79
80
/*
80
- * Indicates whether current client have provided a certificate
81
+ * Indicates whether current client provided a certificate
81
82
*
82
83
* Function has no arguments. Returns bool. True if current session
83
84
* is SSL session and client certificate is verified, otherwise false.
@@ -138,7 +139,7 @@ ssl_client_serial(PG_FUNCTION_ARGS)
138
139
* Returns Datum, which can be directly returned from a C language SQL
139
140
* function.
140
141
*/
141
- Datum
142
+ static Datum
142
143
ASN1_STRING_to_text (ASN1_STRING * str )
143
144
{
144
145
BIO * membuf ;
@@ -182,7 +183,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
182
183
* Returns result of ASN1_STRING_to_text applied to appropriate
183
184
* part of name
184
185
*/
185
- Datum
186
+ static Datum
186
187
X509_NAME_field_to_text (X509_NAME * name , text * fieldName )
187
188
{
188
189
char * string_fieldname ;
@@ -287,7 +288,7 @@ ssl_issuer_field(PG_FUNCTION_ARGS)
287
288
* Returns: text datum which contains string representation of
288
289
* X509_NAME
289
290
*/
290
- Datum
291
+ static Datum
291
292
X509_NAME_to_text (X509_NAME * name )
292
293
{
293
294
BIO * membuf = BIO_new (BIO_s_mem ());
0 commit comments