]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_apple_x509_tp/lib/TPNetwork.cpp
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_apple_x509_tp / lib / TPNetwork.cpp
index 377be2763c4a2c8a460e6ff109df191cbd669c84..e6895229fe2ac327cbb36dd5787c9f4d6bdfd7d8 100644 (file)
@@ -46,7 +46,7 @@ static CSSM_RETURN tpDecodeCert(
        CSSM_DATA               &rtnBlob)               // will be reallocated if needed
 {
        const unsigned char *inbuf = (const unsigned char *)rtnBlob.Data;
        CSSM_DATA               &rtnBlob)               // will be reallocated if needed
 {
        const unsigned char *inbuf = (const unsigned char *)rtnBlob.Data;
-       unsigned inlen = rtnBlob.Length;
+       unsigned inlen = (unsigned)rtnBlob.Length;
        unsigned char *outbuf = NULL;
        unsigned outlen = 0;
        CSSM_RETURN ortn = cuConvertPem(inbuf, inlen, &outbuf, &outlen);
        unsigned char *outbuf = NULL;
        unsigned outlen = 0;
        CSSM_RETURN ortn = cuConvertPem(inbuf, inlen, &outbuf, &outlen);