Fixed missing static and WINPR_API

This commit is contained in:
Armin Novak 2022-02-02 09:17:49 +01:00 committed by akallabeth
parent cb351a099d
commit 99d63ea89e
2 changed files with 8 additions and 6 deletions

View File

@ -332,8 +332,8 @@ out:
return ret;
}
BOOL smartcard_sw_enumerateCerts(rdpSettings* settings, SmartcardCert* scCert, DWORD count,
DWORD* retCount)
static BOOL smartcard_sw_enumerateCerts(rdpSettings* settings, SmartcardCert* scCert, DWORD count,
DWORD* retCount)
{
size_t sz;

View File

@ -19,6 +19,8 @@
#ifndef WINPR_CRED_H_
#define WINPR_CRED_H_
#include <winpr/winpr.h>
#ifdef _WIN32
#include <wincred.h>
#else
@ -41,10 +43,10 @@ typedef struct _CERT_CREDENTIAL_INFO
UCHAR rgbHashOfCert[CERT_HASH_LENGTH];
} CERT_CREDENTIAL_INFO, *PCERT_CREDENTIAL_INFO;
BOOL CredMarshalCredentialA(CRED_MARSHAL_TYPE CredType, PVOID Credential,
LPSTR* MarshaledCredential);
BOOL CredMarshalCredentialW(CRED_MARSHAL_TYPE CredType, PVOID Credential,
LPWSTR* MarshaledCredential);
WINPR_API BOOL CredMarshalCredentialA(CRED_MARSHAL_TYPE CredType, PVOID Credential,
LPSTR* MarshaledCredential);
WINPR_API BOOL CredMarshalCredentialW(CRED_MARSHAL_TYPE CredType, PVOID Credential,
LPWSTR* MarshaledCredential);
#ifdef UNICODE
#define CredMarshalCredential CredMarshalCredentialW