@@ -31,9 +31,10 @@ Datumssl_client_dn_field(PG_FUNCTION_ARGS);
3131Datum ssl_issuer_field (PG_FUNCTION_ARGS );
3232Datum ssl_client_dn (PG_FUNCTION_ARGS );
3333Datum 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 );
3738
3839
3940/*
@@ -51,7 +52,7 @@ ssl_is_used(PG_FUNCTION_ARGS)
5152
5253
5354/*
54- * Returns SSLcipher currently in use.
55+ * Returns SSLversion currently in use.
5556 */
5657PG_FUNCTION_INFO_V1 (ssl_version );
5758Datum
@@ -77,7 +78,7 @@ ssl_cipher(PG_FUNCTION_ARGS)
7778
7879
7980/*
80- * Indicates whether current clienthave provided a certificate
81+ * Indicates whether current client provided a certificate
8182 *
8283 * Function has no arguments. Returns bool. True if current session
8384 * is SSL session and client certificate is verified, otherwise false.
@@ -138,7 +139,7 @@ ssl_client_serial(PG_FUNCTION_ARGS)
138139 * Returns Datum, which can be directly returned from a C language SQL
139140 * function.
140141 */
141- Datum
142+ static Datum
142143ASN1_STRING_to_text (ASN1_STRING * str )
143144{
144145BIO * membuf ;
@@ -182,7 +183,7 @@ ASN1_STRING_to_text(ASN1_STRING *str)
182183 * Returns result of ASN1_STRING_to_text applied to appropriate
183184 * part of name
184185 */
185- Datum
186+ static Datum
186187X509_NAME_field_to_text (X509_NAME * name ,text * fieldName )
187188{
188189char * string_fieldname ;
@@ -287,7 +288,7 @@ ssl_issuer_field(PG_FUNCTION_ARGS)
287288 * Returns: text datum which contains string representation of
288289 * X509_NAME
289290 */
290- Datum
291+ static Datum
291292X509_NAME_to_text (X509_NAME * name )
292293{
293294BIO * membuf = BIO_new (BIO_s_mem ());