Skip to content

Instantly share code, notes, and snippets.

@tgunr
Created March 14, 2016 20:11
Show Gist options
  • Save tgunr/abd750b9325fcab7e312 to your computer and use it in GitHub Desktop.
Save tgunr/abd750b9325fcab7e312 to your computer and use it in GitHub Desktop.
No word named “dlsym?” found in current vocabulary search path
IN: alien.libraries
GENERIC: dlsym? ( name string/dll -- ? )
M: string dlsym? dup lookup-library [ nip dll>> dlsym? ] [ no-library-named ] if* ;
M: dll dlsym? dlsym >boolean ;
IN: secure
MEMO: best-tls-method ( -- class )
{
{ [ "TLSv1_2_method" "libssl" dlsym? ] [ TLSv1.2 ] }
{ [ "TLSv1_1_method" "libssl" dlsym? ] [ TLSv1.1 ] }
{ [ "TLSv1_method" "libssl" dlsym? ] [ TLSv1 ] }
[ no-tls-supported ]
} cond ;
/Users/davec/.factor-rc
1: USING: accessors assocs debugger io io.encodings.utf8 io.files
3: ui.tools.listener vectors vocabs.loader io.servers sets binary-search ;
^
resource:basis/io/servers/servers.factor
3: USING: accessors arrays calendar combinators
7: io io.sockets io.sockets.secure io.streams.duplex io.styles
^
resource:basis/io/sockets/secure/secure.factor
26: { [ "TLSv1_2_method" "libssl" dlsym? ] [ TLSv1.2 ] }
^
No word named “dlsym?” found in current vocabulary search path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment