Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows OPENSSL_Applink error patch #29

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

aruthane
Copy link
Contributor

Solves the OPENSSL_Applink error when using Windows DLLs. Provides a D translation for the applink.c which is normally used to avoid this error in C. The original applink.c source code from OpenSSL has been included for reference.

@aruthane
Copy link
Contributor Author

I think this may also need to be wrapped with version(Window), and at least be tested that there are no problems on a non-Windows system.

@CyberShadow
Copy link
Member

LGTM, but I think a dub user should look at this first to make sure the module isn't being linked in unless necessary or explicitly requested by the user.

return _fileno(fp);
}

int app_fsetmod(FILE *fp, char mod)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't want to export the implementations, only OPENSSL_Applink.

@MartinNowak
Copy link
Contributor

Please make sure to ping (short comment) when pushing new commits, as github doesn't notify about this.

@@ -0,0 +1,115 @@
module deimos.openssl.applink;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want a version (Windows) here.

@MartinNowak
Copy link
Contributor

LGTM, but I think a dub user should look at this first to make sure the module isn't being linked in unless necessary or explicitly requested by the user.

The following should work, please test it.

    "configurations" : [
        {
        "name": "library",
        "excludedSourceFiles": ["deimos/openssl/applink.d"],
        "targetType": "sourceLibrary",
        },
        {
        "name": "library-applink",
        "targetType": "sourceLibrary",
        },
    ]

To use applink in you project, you'd have to select a subconfiguration like so.

    "subConfigurations": {
        "openssl": "library-applink"
    },

@jeking3
Copy link
Contributor

jeking3 commented Sep 19, 2018

After fixing things, add "This fixes #28" to the description so they close together.

@sam0x17
Copy link

sam0x17 commented Feb 28, 2019

Did this never get merged? or is this no longer an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants