ssl_cs example fails in P9C
Mikael Karlsson
mikael.karlsson@REDACTED
Wed May 14 13:42:09 CEST 2003
Hi,
I am playing around with your snapshot P9C release and the example
that reads the certificate data.
The example does not work and the problem seems to be that
PKIX1Explicit88:'dec_X520CommonName'/1 is called from the
SSL-PKIX module, but only 'dec_X520CommonName'/2 is exported
from that module.
I understand that P9C is preliminary and that one can not expect everything
to work :-), but since the problem has been there for some time I just wanted
to make you aware of it.
/Mikael
-------------------------------------------------------------------------
mikael@REDACTED:~/local/src/otp_src_P9C_2003-05-13/lib/ssl/examples/src> erl
Erlang (BEAM) emulator version 2003.05.13 [source] [hipe]
Eshell V2003.05.13 (abort with ^G)
1> c(ssl_cs).
{ok,ssl_cs}
2> ssl_cs:start().
Listen: port = 1299.
Accept: accepted.
Connect: connected.
=ERROR REPORT==== 14-May-2003::13:22:38 ===
Error in process <0.24.0> with exit value: {{badmatch,{error,{asn1,{'Type not
compatible with table
constraint',{undef,[{'PKIX1Explicit88',dec_X520CommonName,[{19,<<6
bytes>>}]},{'SSL-PKIX',dec_AttributeTypeAndValue,2},{'SSL-PKIX',decode,2},{ssl_pkix,transform,1},{lists,map,...
** exited: {{badmatch,{error,{asn1,{'Type not compatible with table
constraint',
{undef,
[{'PKIX1Explicit88',
dec_X520CommonName,
[{19,
<<99,108,105,101,110,116>>}]},
{'SSL-PKIX',
dec_AttributeTypeAndValue,
2},
{'SSL-PKIX',decode,2},
{ssl_pkix,transform,1},
{lists,map,2},
{ssl_pkix,transform,1},
{ssl_pkix,decode_cert,2},
{ssl_cs,start,1}|
more]}}}}},
[{ssl_pkix,transform,1},
{lists,map,2},
{ssl_pkix,transform,1},
{ssl_pkix,decode_cert,2},
{ssl_cs,start,1},
{erl_eval,do_apply,5},
{shell,eval_loop,2}]} **
=ERROR REPORT==== 14-May-2003::13:22:38 ===
Error in process <0.52.0> with exit value: {{badmatch,{error,{asn1,{'Type not
compatible with table
constraint',{undef,[{'PKIX1Explicit88',dec_X520CommonName,[{19,<<6
bytes>>}]},{'SSL-PKIX',dec_AttributeTypeAndValue,2},{'SSL-PKIX',decode,2},{ssl_pkix,transform,1},{lists,map,...
More information about the erlang-bugs
mailing list