Permalink
Browse files

Chilkat API change fixed

  • Loading branch information...
1 parent 03ac580 commit e0e5ad0451be361e4cc74b6507c57b5bf0eacf9e maaaaz committed Mar 23, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 androwarn/search/manifest/manifest.py
@@ -124,7 +124,9 @@ def grab_certificate(apk, filename) :
import chilkat
cert = chilkat.CkCert()
f = apk.get_file( filename )
- success = cert.LoadFromBinary(f, len(f))
+ bytedata = chilkat.CkByteData()
+ bytedata.append2(f, len(f))
+ success = cert.LoadFromBinary(bytedata)
return success, cert
except ImportError :
log.error("The Chilkat module is not installed, you will not have information about the certificate in the generated report")

0 comments on commit e0e5ad0

Please sign in to comment.