X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..dd5fb164cf5b32c462296bc65e289e100f74b59a:/OSX/libsecurity_pkcs12/lib/pkcs12Decode.cpp?ds=inline diff --git a/OSX/libsecurity_pkcs12/lib/pkcs12Decode.cpp b/OSX/libsecurity_pkcs12/lib/pkcs12Decode.cpp index 9e426c1a..1ff9e1a5 100644 --- a/OSX/libsecurity_pkcs12/lib/pkcs12Decode.cpp +++ b/OSX/libsecurity_pkcs12/lib/pkcs12Decode.cpp @@ -31,6 +31,7 @@ #include "pkcs12Debug.h" #include "pkcs12Crypto.h" #include +#include #include /* top-level PKCS12 PFX decoder */ @@ -42,7 +43,7 @@ void P12Coder::decode( p12DecodeLog("decode"); memset(&pfx, 0, sizeof(pfx)); - const CSSM_DATA rawBlob = {CFDataGetLength(cdpfx), + const CSSM_DATA rawBlob = {int_cast(CFDataGetLength(cdpfx)), (uint8 *)CFDataGetBytePtr(cdpfx)}; if(localCdr.decodeItem(rawBlob, NSS_P12_DecodedPFXTemplate, &pfx)) {