timkurvers / as3-crypto

Fork of Henri Torgemane's excellent as3 cryptography library
http://code.google.com/p/as3crypto
Other
93 stars 46 forks source link

Error: pure virtual function call: fromDERContent #17

Open Lauwisme opened 10 years ago

Lauwisme commented 10 years ago

Error: pure virtual function call: fromDERContent at com.hurlant.util.asn1.type::ASN1Type/fromDERContent()[/Users/timkurvers/Projects/personal/as3-crypto/src/com/hurlant/util/asn1/type/ASN1Type.as:150] at com.hurlant.util.asn1.type::ASN1Type/fromDER()[/Users/timkurvers/Projects/personal/as3-crypto/src/com/hurlant/util/asn1/type/ASN1Type.as:131] at com.hurlant.util.asn1.type::SequenceType/fromDERContent()[/Users/timkurvers/Projects/personal/as3-crypto/src/com/hurlant/util/asn1/type/SequenceType.as:32] at com.hurlant.util.asn1.type::ASN1Type/fromDER()[/Users/timkurvers/Projects/personal/as3-crypto/src/com/hurlant/util/asn1/type/ASN1Type.as:131]

This is the error I get while in debug mode and using your swc with airxmail connecting to the smtp server from gmail. Please advise (might have something to do with gmail updating their ssl certificates?)

Lauwisme commented 10 years ago

After reading here (http://community.igniterealtime.org/thread/48522), I tried again by using the as3crypto.swc from their xiff download and this time the tls connection (port 587) to gmail worked. I don't know where they got their version, but you might want to update your source with the changes in this swc?

timkurvers commented 10 years ago

Heya, thanks for the reference to that thread, hadn't seen that before!

It seems the SWC from the original SVN repository (https://code.google.com/p/as3crypto/source/list) is at least not in sync with the actual source code that was on it. There seem to be various tweaked SWCs floating around.

It's likely pull request #15 may actually fix the issues you're seeing. Will keep this issue open until this is cleared up. Thanks again.