GithubHelp home page GithubHelp logo

ezhangle / openssl-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from winlibs/openssl

0.0 2.0 0.0 11.88 MB

Code from the OpenSSL Project

License: Other

Shell 0.70% C++ 1.69% C 73.73% Makefile 3.75% Batchfile 0.24% Perl 16.25% DIGITAL Command Language 1.56% Assembly 1.65% XS 0.02% eC 0.03% Objective-C 0.14% Protocol Buffer 0.01% Scheme 0.02% Groff 0.01% Prolog 0.21%

openssl-1's Introduction

OpenSSL Windows, How to compile

Building OpenSSL 1.0.2

Requirements

Configure

It is important to always keep the prefix path as c:/usr/local/ssl. It is the documented default config path in PHP, so it has to be the same in every OpenSSL build

Configure for Win32

cd  C:\phpbuild\libs\openssl-1.0.2d
perl Configure --openssldir=c:/usr/local/ssl enable-static-engine VC-WIN32

Configure for Win64

cd  C:\phpbuild\libs\openssl-1.0.2d
perl Configure --openssldir=c:/usr/local/ssl enable-static-engine VC-WIN64A

The configure will prepare the sources to compile OpenSSL for windows 32bit and install it under c:/usr/local/ssl.

Modify the path using your configurations. Please note the unix directory separators / instead of the Windows backslash .

Assembly languages options

PHP build default in 5.2 don't use ASM. PHP build default in 5.3 and later uses ASM.

For Win64 builds, use only:

ms\do_win64a

For win32 builds only:

If you don't want to use assembly language:

ms\do_ms

If you like to use the assembly language files:

If you have MASM (aka “ml”), run:

ms\do_masm

Or if you use NASM:

ms\do_nasm

You should not get any error until now. If you see errors messages, please check the troubleshooting section in “INSTALL.W32” in the OpenSSL sources.

And for win64:

ms\do_win64a

Compiling

nmake -f ms\ntdll.mak

If you prefer to build a static library, use this command:

nmake -f ms\nt.mak

If you get the following compilation error (with other letters):

.\crypto\cversion.c(105) : warning C4129: 'p' : unrecognized character escape sequence
.\crypto\cversion.c(105) : warning C4129: 'l' : unrecognized character escape sequence

Go back to the configure phase and be sure to use only slashed and no backslashes for –openssldir (or –prefix)

Testing

The possible point of failures in the OpenSSL implementations are numerous. Thanks to their tests suite, it is possible to minimize the risk by running it after each update:

nmake -f ms\ntdll.mak test

Install

nmake -f ms\ntdll.mak install

or

nmake -f ms\nt.mak install

if you built the static library.

Copy OpenSSL 1.0.2 development files in the PHP SDK

To be done

Copy OpenSSL 1.0.2 in the PHP release Template

To be done

openssl-1's People

Contributors

pierrejoye avatar weltling avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.