Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-27-2013, 03:00 PM
PiB
Fire Beetle
 
Join Date: Aug 2012
Posts: 15
Default Loadable crypto for Linux

I have been working on making the Windows loadable crypto code work on Linux. This turned out to be mostly removing the #ifdefs and implementing
some functions in loginserver/Encryption.cpp with the Linux equivalents.

This seems to be working well for me, but one downside is that it requires recompiling EQEmuAuthCrypto as a shared library (.so). I have tried to do
this but the version I have is not compiled with -fPIC:

Code:
FAILED: : && /usr/bin/c++  -fPIC -O2 -g -DNDEBUG   -shared -Wl,-soname,libEQEmuAuthCrypto.so -o loginserver/libEQEmuAuthCrypto.so
 loginserver/CMakeFiles/EQEmuAuthCrypto.dir/EQCrypto.cpp.o  ../dependencies/libEQEmuAuthCrypto.a ../dependencies/libcryptopp.a && :

    /usr/bin/ld: ../dependencies/libEQEmuAuthCrypto.a(EQEmuAuthCrypto.o): relocation R_X86_64_32 against `.rodata' can not be used when making
 a shared object; recompile with -fPIC

    ../dependencies/libEQEmuAuthCrypto.a: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
To test this I have created a similar library that does not use any encryption (except for hashing the password). Using it is similar to how it is done
on Windows, by editing login.ini. One difference is that plugin should be a full path or explicit relative path:

Code:
[security]
plugin = ./libEQuilibrePlaintextAuth.so
mode = 5
I have commited these changes to a GitHub fork if anyone is interested: https://github.com/pixelbound/Server...e-crypto-linux.

Last edited by KLS; 05-04-2013 at 10:38 PM.. Reason: ridiculous page width
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:58 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3