Skip to content

Commit 8520ca5

Browse files
author
Andras Fekete
committed
Version dependent structure
1 parent 480a70d commit 8520ca5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/wp_internal.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,15 @@ int wp_encrypt_key(WOLFPROV_CTX* provCtx, const char* cipherName,
684684
/*
685685
* Copy of Core BIO structure as it isn't public and need to get the BIO out.
686686
*/
687+
688+
#if OPENSSL_VERSION_PREREQ(3,2)
689+
struct ossl_core_bio_st {
690+
/* Reference count. */
691+
int ref_cnt;
692+
/* Underlying BIO. */
693+
BIO *bio;
694+
};
695+
#else
687696
struct ossl_core_bio_st {
688697
/* Reference count. */
689698
int ref_cnt;
@@ -692,6 +701,7 @@ struct ossl_core_bio_st {
692701
/* Underlying BIO. */
693702
BIO *bio;
694703
};
704+
#endif
695705

696706
/**
697707
* Read data out of the core BIO.

0 commit comments

Comments
 (0)