mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-28 16:14:34 +00:00
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.
This commit is contained in:
parent
985ec9d6ec
commit
fbb6b9984a
@ -392,7 +392,7 @@ SpiceMarshaller *spice_marshaller_get_ptr_submarshaller(SpiceMarshaller *m, int
|
||||
return m2;
|
||||
}
|
||||
|
||||
uint8_t *lookup_ref(MarshallerRef *ref)
|
||||
static uint8_t *lookup_ref(MarshallerRef *ref)
|
||||
{
|
||||
MarshallerItem *item;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user