forked from curl/curl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AmiSSL is an Amiga native library which provides a wrapper over OpenSSL. It also requires all programs using it to use bsdsocket.library directly, rather than accessing socket functions through clib, which libcurl was not necessarily doing previously. Configure will now check for the headers and ensure they are included if found. Closes curl#3677
- Loading branch information
Showing
8 changed files
with
194 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2016, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -22,17 +22,26 @@ | |
|
||
#include "curl_setup.h" | ||
|
||
#if defined(__AMIGA__) && !defined(__ixemul__) | ||
|
||
#include <amitcp/socketbasetags.h> | ||
#ifdef __AMIGA__ | ||
# include "amigaos.h" | ||
# if defined(HAVE_PROTO_BSDSOCKET_H) && !defined(USE_AMISSL) | ||
# include <amitcp/socketbasetags.h> | ||
# endif | ||
# ifdef __libnix__ | ||
# include <stabs.h> | ||
# endif | ||
#endif | ||
|
||
#include "amigaos.h" | ||
/* The last #include files should be: */ | ||
#include "curl_memory.h" | ||
#include "memdebug.h" | ||
|
||
#ifdef __AMIGA__ | ||
#if defined(HAVE_PROTO_BSDSOCKET_H) && !defined(USE_AMISSL) | ||
struct Library *SocketBase = NULL; | ||
extern int errno, h_errno; | ||
|
||
#ifdef __libnix__ | ||
#include <stabs.h> | ||
void __request(const char *msg); | ||
#else | ||
# define __request(msg) Printf(msg "\n\a") | ||
|
@@ -74,4 +83,13 @@ bool Curl_amiga_init() | |
ADD2EXIT(Curl_amiga_cleanup, -50); | ||
#endif | ||
|
||
#endif /* __AMIGA__ && ! __ixemul__ */ | ||
#endif /* HAVE_PROTO_BSDSOCKET_H */ | ||
|
||
#ifdef USE_AMISSL | ||
void Curl_amiga_X509_free(X509 *a) | ||
{ | ||
X509_free(a); | ||
} | ||
#endif /* USE_AMISSL */ | ||
#endif /* __AMIGA__ */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2012, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -23,7 +23,7 @@ | |
***************************************************************************/ | ||
#include "curl_setup.h" | ||
|
||
#if defined(__AMIGA__) && !defined(__ixemul__) | ||
#if defined(__AMIGA__) && defined(HAVE_BSDSOCKET_H) && !defined(USE_AMISSL) | ||
|
||
bool Curl_amiga_init(); | ||
void Curl_amiga_cleanup(); | ||
|
@@ -35,4 +35,10 @@ void Curl_amiga_cleanup(); | |
|
||
#endif | ||
|
||
#ifdef USE_AMISSL | ||
#include <openssl/x509v3.h> | ||
void Curl_amiga_X509_free(X509 *a); | ||
#endif /* USE_AMISSL */ | ||
|
||
#endif /* HEADER_CURL_AMIGAOS_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <[email protected]>, et al. | ||
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
|
@@ -83,7 +83,7 @@ static void MD5_Final(unsigned char digest[16], MD5_CTX * ctx) | |
gcry_md_close(*ctx); | ||
} | ||
|
||
#elif defined(USE_OPENSSL) | ||
#elif defined(USE_OPENSSL) && !defined(USE_AMISSL) | ||
/* When OpenSSL is available we use the MD5-function from OpenSSL */ | ||
#include <openssl/md5.h> | ||
#include "curl_memory.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.