wweifu / as3crypto

Automatically exported from code.google.com/p/as3crypto
0 stars 0 forks source link

TLSSocket "pure virtual function call" #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to connect to gmail's pop3 server (pop.gmail.com:993).

What steps will reproduce the problem?
1. Create an air app (I am using flex).
2. Create a new TLSSocket and connect to gmail.
3. Before I can send anything, I get this error

What is the expected output? What do you see instead?
   Error: pure virtual function call: fromDERContent

What version of the product are you using? On what operating system?
   Latest from SVN. Vista.

Original issue reported on code.google.com by pedrosland@gmail.com on 17 Sep 2009 at 1:13

Attachments:

GoogleCodeExporter commented 8 years ago
Did you ever happen to get this figured out?  I'm encountering it now, myself, 
and I'm 
a bit stumped.

Original comment by cnunci...@gmail.com on 14 Dec 2009 at 11:02

GoogleCodeExporter commented 8 years ago
No. I don't really know much about TLS and I haven't had the time to really 
look at
the code. You could use AIR 2.0 beta. It has native support for TLS/SSL sockets.

Original comment by pedrosland@gmail.com on 15 Dec 2009 at 12:34

GoogleCodeExporter commented 8 years ago
at least the BooleanType.as has no implementation for the function 
fromDERContent
inherited from ASN1Type.as. And this lack of implemention caused similar 
problems
here, which I have by-passed, adding impl code for BooleanType. maybe you can 
try.

Original comment by sen.zh...@gmail.com on 28 Jan 2010 at 7:58

GoogleCodeExporter commented 8 years ago
Here's the missing function:

        /**
         * Decodes a boolean from the DER stream (one octet)
         * 
         * @param s
         * @param length
         * @return true if the next byte is nonzero.
         * 
         */
        protected override function fromDERContent(s:ByteArray, length:int):* {
            return s.readBoolean();
        }

Original comment by billbras...@gmail.com on 8 Mar 2010 at 11:13

GoogleCodeExporter commented 8 years ago
Freaking awesome... does anyone actually update this thing anymore, it would be 
helpful to get this fix into the project rather than buried in here...

Original comment by mar...@fr1n63.com on 18 Nov 2010 at 6:09

GoogleCodeExporter commented 8 years ago
I just building code send mail(smtp).
I have fixed this line success! 
Thanks for the guidance function. But why not update it to the main code(svn)?

Original comment by hungcon...@gmail.com on 26 Apr 2011 at 6:14