-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile_{v1,src},OpenSSL_version.{mk,c},README.md: major update with…
… improved diagnostics
- Loading branch information
Showing
7 changed files
with
277 additions
and
135 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 |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
* @file OpenSSL_version.c | ||
* @brief OpenSSL version checking utility | ||
* | ||
* @author David von Oheimb, CT RDA CST SEA, [email protected] | ||
* @author David von Oheimb, [email protected] | ||
* | ||
* Copyright (c) 2021 Siemens AG | ||
* Copyright (c) 2021-2024 Siemens AG | ||
* Licensed under the Apache License, Version 2.0 | ||
* SPDX-License-Identifier: Apache-2.0 | ||
******************************************************************************/ | ||
|
@@ -38,10 +38,10 @@ int main(int argc, char *argv[]) | |
fprintf(stderr, DEBUG_MESSAGE); | ||
|
||
unsigned long static_version = (unsigned long)OPENSSL_VERSION_NUMBER; | ||
fprintf(stderr, "[DEBUG] OPENSSL_VERSION_NUMBER: 0x%lx\n", static_version); | ||
fprintf(stderr, "[TRACE] OPENSSL_VERSION_NUMBER: 0x%lx\n", static_version); | ||
|
||
unsigned long runtime_version = OpenSSL_version_num(); | ||
fprintf(stderr, "[DEBUG] runtime_version: 0x%lx\n", runtime_version); | ||
fprintf(stderr, "[TRACE] OpenSSL runtime_version: 0x%lx\n", runtime_version); | ||
|
||
#define MAJOR_MINOR_MASK 0xfff00000L | ||
if ((MAJOR_MINOR_MASK & runtime_version ) != (MAJOR_MINOR_MASK & OPENSSL_VERSION_NUMBER)) { | ||
|
Oops, something went wrong.