Commit c6fd036b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

crypt32: Get rid of no longer used contextSize argument in Context_GetProperties.

parent 5b5bb508
......@@ -211,8 +211,7 @@ BOOL WINAPI CertFreeCertificateContext(PCCERT_CONTEXT pCertContext)
DWORD WINAPI CertEnumCertificateContextProperties(PCCERT_CONTEXT pCertContext,
DWORD dwPropId)
{
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(
pCertContext, sizeof(CERT_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(pCertContext);
DWORD ret;
TRACE("(%p, %d)\n", pCertContext, dwPropId);
......@@ -264,8 +263,7 @@ static BOOL CertContext_GetProperty(void *context, DWORD dwPropId,
void *pvData, DWORD *pcbData)
{
PCCERT_CONTEXT pCertContext = context;
CONTEXT_PROPERTY_LIST *properties =
Context_GetProperties(context, sizeof(CERT_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
CRYPT_DATA_BLOB blob;
......@@ -515,8 +513,7 @@ static BOOL CertContext_SetKeyProvInfoProperty(CONTEXT_PROPERTY_LIST *properties
static BOOL CertContext_SetProperty(void *context, DWORD dwPropId,
DWORD dwFlags, const void *pvData)
{
CONTEXT_PROPERTY_LIST *properties =
Context_GetProperties(context, sizeof(CERT_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
TRACE("(%p, %d, %08x, %p)\n", context, dwPropId, dwFlags, pvData);
......
......@@ -131,7 +131,7 @@ void *Context_GetLinkedContext(void *context)
return CONTEXT_FROM_BASE_CONTEXT(baseContext->u.linked);
}
CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context, size_t contextSize)
CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context)
{
BASE_CONTEXT *ptr = BASE_CONTEXT_FROM_CONTEXT(context);
......@@ -180,8 +180,8 @@ void Context_CopyProperties(const void *to, const void *from,
{
CONTEXT_PROPERTY_LIST *toProperties, *fromProperties;
toProperties = Context_GetProperties(to, contextSize);
fromProperties = Context_GetProperties(from, contextSize);
toProperties = Context_GetProperties(to);
fromProperties = Context_GetProperties(from);
assert(toProperties && fromProperties);
ContextPropertyList_Copy(toProperties, fromProperties);
}
......
......@@ -354,8 +354,7 @@ BOOL WINAPI CertFreeCRLContext( PCCRL_CONTEXT pCrlContext)
DWORD WINAPI CertEnumCRLContextProperties(PCCRL_CONTEXT pCRLContext,
DWORD dwPropId)
{
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(
pCRLContext, sizeof(CRL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(pCRLContext);
DWORD ret;
TRACE("(%p, %d)\n", pCRLContext, dwPropId);
......@@ -388,8 +387,7 @@ static BOOL CRLContext_GetHashProp(PCCRL_CONTEXT context, DWORD dwPropId,
static BOOL CRLContext_GetProperty(PCCRL_CONTEXT context, DWORD dwPropId,
void *pvData, DWORD *pcbData)
{
CONTEXT_PROPERTY_LIST *properties =
Context_GetProperties(context, sizeof(CRL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
CRYPT_DATA_BLOB blob;
......@@ -488,8 +486,7 @@ BOOL WINAPI CertGetCRLContextProperty(PCCRL_CONTEXT pCRLContext,
static BOOL CRLContext_SetProperty(PCCRL_CONTEXT context, DWORD dwPropId,
DWORD dwFlags, const void *pvData)
{
CONTEXT_PROPERTY_LIST *properties =
Context_GetProperties(context, sizeof(CRL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
TRACE("(%p, %d, %08x, %p)\n", context, dwPropId, dwFlags, pvData);
......
......@@ -357,7 +357,7 @@ void Context_CopyProperties(const void *to, const void *from,
/* Returns context's properties, or the linked context's properties if context
* is a link context.
*/
CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context, size_t contextSize) DECLSPEC_HIDDEN;
CONTEXT_PROPERTY_LIST *Context_GetProperties(const void *context) DECLSPEC_HIDDEN;
void Context_AddRef(void *context) DECLSPEC_HIDDEN;
......
......@@ -489,8 +489,7 @@ BOOL WINAPI CertFreeCTLContext(PCCTL_CONTEXT pCTLContext)
DWORD WINAPI CertEnumCTLContextProperties(PCCTL_CONTEXT pCTLContext,
DWORD dwPropId)
{
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(
pCTLContext, sizeof(CTL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(pCTLContext);
DWORD ret;
TRACE("(%p, %d)\n", pCTLContext, dwPropId);
......@@ -523,8 +522,7 @@ static BOOL CTLContext_GetHashProp(PCCTL_CONTEXT context, DWORD dwPropId,
static BOOL CTLContext_GetProperty(PCCTL_CONTEXT context, DWORD dwPropId,
void *pvData, DWORD *pcbData)
{
CONTEXT_PROPERTY_LIST *properties =
Context_GetProperties(context, sizeof(CTL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
CRYPT_DATA_BLOB blob;
......@@ -621,7 +619,7 @@ BOOL WINAPI CertGetCTLContextProperty(PCCTL_CONTEXT pCTLContext,
static BOOL CTLContext_SetProperty(PCCTL_CONTEXT context, DWORD dwPropId,
DWORD dwFlags, const void *pvData)
{
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context, sizeof(CTL_CONTEXT));
CONTEXT_PROPERTY_LIST *properties = Context_GetProperties(context);
BOOL ret;
TRACE("(%p, %d, %08x, %p)\n", context, dwPropId, dwFlags, pvData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment