Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created August 18, 2012 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/3385175 to your computer and use it in GitHub Desktop.
Save tadzik/3385175 to your computer and use it in GitHub Desktop.
┌─[tadzik@yavin4]─[~/src/perl/OpenSSL-SHA1]
└─[%]─> cat test.pl
use NativeCall;
sub SHA1(Str, Int, OpaquePointer) returns Str is native('libssl') {
}
say SHA1("foo", 3, OpaquePointer);
┌─[tadzik@yavin4]─[~/src/perl/OpenSSL-SHA1]
└─[%]─> perl6 test.pl
Malformed UTF-8 string
in method postcircumfix:<( )> at lib/NativeCall.pm6:127
in <anon> at src/gen/BOOTSTRAP.pm:824
in any <anon> at src/gen/BOOTSTRAP.pm:820
in block at test.pl:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment