Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Update to OpenSSL 1.0.2a
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Caudill committed Mar 25, 2015
1 parent 2774455 commit 11f4d15
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ManagedOpenSsl/Core/Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ static Native()
{
var lib = Version.Library;
var wrapper = Version.Wrapper;
var mmf = lib.Raw & 0xfffff000;
if (mmf != wrapper.Raw)
if (lib.Raw < wrapper.Raw)
throw new Exception(string.Format("Invalid version of {0}, expecting {1}, got: {2}",
DLLNAME, wrapper, lib));

Expand Down Expand Up @@ -225,7 +224,7 @@ public static void UninitializeThreads()
#endregion

#region Version
public const uint Wrapper = 0x10000000;
public const uint Wrapper = 0x1000201F; //1.0.2a Release

[DllImport(DLLNAME, CallingConvention=CallingConvention.Cdecl)]
public extern static string SSLeay_version(int type);
Expand Down
2 changes: 1 addition & 1 deletion ManagedOpenSsl/Core/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public char Patch
{
get
{
var patch = (raw & 0x00000ff0) >> 4;
var patch = (raw & 0x00000ff0) >> 5;

var a = Encoding.ASCII.GetBytes("a")[0];
var x = a + patch;
Expand Down
Binary file modified native/windows/x86/libeay32.dll
Binary file not shown.
Binary file modified native/windows/x86/ssleay32.dll
Binary file not shown.

0 comments on commit 11f4d15

Please sign in to comment.