]> gitweb.factorcode.org Git - factor.git/commitdiff
openssl.libssl: Use libcrypto on Windows instead of libeay or ssleay and
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 13 Mar 2016 23:10:04 +0000 (16:10 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 13 Mar 2016 23:11:44 +0000 (16:11 -0700)
add a few more functions. Ugh.

basis/openssl/libssl/libssl.factor

index 3e1eebfda8fc31fff7b1a3fd53d55b516341695f..e8db632cde24861aad59a637b490135ff7ac04d4 100644 (file)
@@ -401,6 +401,8 @@ FUNCTION: SSL_CTX* SSL_CTX_new ( ssl-method method )
 FUNCTION: int SSL_CTX_use_certificate_chain_file ( SSL_CTX* ctx,
                                                    c-string file ) ! PEM type
 
+FUNCTION: int SSL_CTX_use_certificate ( SSL_CTX* ctx, X509* x )
+
 FUNCTION: SSL* SSL_new ( SSL_CTX* ctx )
 
 FUNCTION: int SSL_set_fd ( SSL* ssl, int fd )
@@ -600,13 +602,13 @@ CONSTANT: NID_subject_alt_name  85
 CONSTANT: NID_issuer_alt_name   86
 
 ! ===============================================
-! On Windows, some of the functions making up libssl are placed in the
-! libeay32.dll and not in the similarily named ssleay32.dll file.
+! On Windows, some of the functions making up libressl
+! are placed in libcrypto-37.dll
 ! ===============================================
 
 << os windows? [
     "libssl-windows"
-    [ "libeay32.dll" cdecl add-library ] [ current-library set ] bi
+    [ "libcrypto-37.dll" cdecl add-library ] [ current-library set ] bi
 ] when >>
 
 ! x509.h
@@ -623,6 +625,12 @@ DESTRUCTOR: X509_free
 C-TYPE: X509_STORE
 FUNCTION: X509_STORE* X509_STORE_new ( )
 
+CONSTANT: X509_R_CERT_ALREADY_IN_HASH_TABLE 101
+FUNCTION: int X509_STORE_add_cert ( X509_STORE* ctx, X509* x )
+
+! X509_NAME_oneline could return c-string but needs to be freed with OPENSSL_free
+FUNCTION: char* X509_NAME_oneline ( X509_NAME* a, char* buf, int size )
+
 FUNCTION: X509* d2i_X509 ( X509** px, uchar** in, int len )
 FUNCTION: int i2d_X509 ( X509* x, uchar** out )
 ! FUNCTION: X509* d2i_X509_bio ( BIO* bp, X509** x )