Skip to content

Commit

Permalink
Update initialize function name (#78)
Browse files Browse the repository at this point in the history
Updates the initialize function to include package name to be unique. Other functions look to be okay and not likely for a collision.

Tested winx64

Fixes: #76

Signed-off-by: John Peck <[email protected]>
  • Loading branch information
johnpeck-us-ibm authored Jun 11, 2024
1 parent c6feecd commit 3c44149
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/native/StaticStub.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -33,7 +33,7 @@ JNIEXPORT jlong JNICALL Java_com_ibm_crypto_plus_provider_ock_NativeInterface_in
int retcode = ICC_OK;
ICC_STATUS status;

initialize();
com_ibm_crypto_plus_provider_initialize();

if( debug ) {
gslogFunctionEntry(functionName);
Expand Down
4 changes: 2 additions & 2 deletions src/main/native/Utils.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand All @@ -25,7 +25,7 @@ int debug = 0; // FIXME
//
//
void
initialize()
com_ibm_crypto_plus_provider_initialize()
{
if( !initialized ) {
#if DEBUG
Expand Down
4 changes: 2 additions & 2 deletions src/main/native/Utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -38,7 +38,7 @@ free((_ptr)); \

extern int debug;

void initialize();
void com_ibm_crypto_plus_provider_initialize();

int gslogFunctionEntry( const char * functionName );
int gslogError( const char * formatString, ...);
Expand Down

0 comments on commit 3c44149

Please sign in to comment.