Skip to content

Commit

Permalink
Link to OpenSSL only when BCrypt is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Mar 20, 2024
1 parent 5d41aa3 commit 02f510c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion common/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
#include <ctype.h>
#include <string.h>

#include "util.h"

#ifndef _WIN32_BCRYPT
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/x509.h>

#include "openssl-compat.h"
#include "util.h"
#include "insecure_memzero.h"
#include "hash.h"

Expand Down
5 changes: 3 additions & 2 deletions common/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
#ifndef YUBICOM_UTIL_H
#define YUBICOM_UTIL_H

#include <stdbool.h>
#include <stdint.h>

#ifndef _WIN32_BCRYPT
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <stdbool.h>
#include <stdint.h>

#include <yubihsm.h>
#include "../common/platform-config.h"
Expand Down

0 comments on commit 02f510c

Please sign in to comment.