Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,6 @@ if( NOT CMAKE_USE_PTHREADS_INIT )

endif( NOT CMAKE_USE_PTHREADS_INIT )

if( NOT APPLE )

check_library_exists(
${CMAKE_THREAD_LIBS_INIT}
"pthread_mutex_timedlock"
""
FUNC_LIB_TIMEDLOCK )

endif( NOT APPLE )

if( FUNC_LIB_TIMEDLOCK )

add_definitions( -DOPT_TIMEDLOCK )
Expand Down
4 changes: 2 additions & 2 deletions source/iked/ike.keyfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ bool bdata_2_cert( X509 ** x509, BDATA & cert )
return true;
}

bool prvkey_rsa_2_bdata( BDATA & prvkey, RSA * rsa )
bool prvkey_rsa_2_bdata( BDATA & prvkey, const RSA * rsa )
{
int size = i2d_RSAPrivateKey( rsa, NULL );
prvkey.size( size );
Expand All @@ -123,7 +123,7 @@ bool bdata_2_prvkey_rsa( RSA ** rsa, BDATA & prvkey )
return true;
}

bool pubkey_rsa_2_bdata( BDATA & pubkey, RSA * rsa )
bool pubkey_rsa_2_bdata( BDATA & pubkey, const RSA * rsa )
{
int size = i2d_RSAPublicKey( rsa, NULL );
pubkey.size( size );
Expand Down