summaryrefslogtreecommitdiffstats
path: root/common/ssl_verify.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-02-10 15:03:31 +0000
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:24 +0100
commitfbb6b9984afc8983ce1fa1db6bdee2b1150631b5 (patch)
treea492b64618c9ba5638713f7c5b18d9b6179944bc /common/ssl_verify.c
parent985ec9d6ec56f15a72ec974ff2fd1f7bab68cd91 (diff)
downloadspice-common-fbb6b9984afc8983ce1fa1db6bdee2b1150631b5.tar.gz
spice-common-fbb6b9984afc8983ce1fa1db6bdee2b1150631b5.tar.xz
spice-common-fbb6b9984afc8983ce1fa1db6bdee2b1150631b5.zip
Add missing includes & make some functions static
A number of functions were used without prior declaration. In some cases this was due to missing include files. In other cases the functions should have just been static. Ideally this would allow -Wmissing-declarations to be enabled, but the files generated by spice_codegen.py will still trip up on this.
Diffstat (limited to 'common/ssl_verify.c')
-rw-r--r--common/ssl_verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ssl_verify.c b/common/ssl_verify.c
index cb77b7e..236fa01 100644
--- a/common/ssl_verify.c
+++ b/common/ssl_verify.c
@@ -263,7 +263,7 @@ static int verify_hostname(X509* cert, const char *hostname)
return cn_match;
}
-X509_NAME* subject_to_x509_name(const char *subject, int *nentries)
+static X509_NAME* subject_to_x509_name(const char *subject, int *nentries)
{
X509_NAME* in_subject;
const char *p;
@@ -352,7 +352,7 @@ fail:
return NULL;
}
-int verify_subject(X509* cert, SpiceOpenSSLVerify* verify)
+static int verify_subject(X509* cert, SpiceOpenSSLVerify* verify)
{
X509_NAME *cert_subject = NULL;
int ret;