Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2010, 12:35 AM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default Login code

Is there a reason all of the login server code is locked down?

LOL I just want to start working on my new client that can log into eqemu, but I can't seem to get it to work.

I've been looking for a few days on how the encryption works, what the handshake is all about, etc.

I didn't think the hardest part would be getting the login part working.

Any pointers or tips would be GREATLY appreciated.
Reply With Quote
  #2  
Old 08-04-2010, 09:41 AM
steve
Discordant
 
Join Date: Jan 2002
Posts: 305
Default

It's locked down and the source not public because the login server code works with the Live game client.
Reply With Quote
  #3  
Old 08-04-2010, 10:01 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

The official Login Server source is locked down, but we do have an open source EQEmu Login Server available on the Google SVN here:

http://code.google.com/p/projecteqem...EmuLoginServer

It does everything that the Official EQEmu LS does and you can mess with the code all you like.

It already works fine with all of the clients that EQEmu currently supports including the current EQLive client. If you are considering trying to work on an older EQ client that isn't currently supported, then good luck, because without lots of packet collects from that particular client you will have an extremely hard time even getting the client to be able to log into the game much less make it functional enough to be playable.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 08-04-2010, 12:10 PM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default

Thanks for the quick reply.

I've been looking at the EmuLoginServer code distributed with the eqemu server and see that the encryption/decryption is done inside a DLL (EQEmuAuthCrypto.dll I think).

I tried loading it into .NET several different ways, but it always has issues with it.
When adding it as a reference in C# .NET it says:

---------------------------
Microsoft Visual Studio
---------------------------
A reference to 'C:\test\EQEmuAuthCrypto.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
---------------------------
OK
---------------------------

Is there a .NET-friendly Crypto dll or source code (not sure if this is going to open a can of worms or not)? Also, if someone can explain how the encryption is done, that'd be awesome.

I created a regular C++ application and call the encrypt/decrypt functions, but for some reason, the Decrypt function is complaining about the size not being a block size and spits out garbage.

This is what I did:
encrypted = encrypt_func(password,strlen(password),mode);
decrtypted=decrypt_func(encrypted,strlen(encrypted ),mode);
decrypted is not the same as password and is garbage (not to mention that there is that warning issued about the size not being a block size).

Thanks!
Reply With Quote
  #5  
Old 08-04-2010, 04:43 PM
blmille2
Sarnak
 
Join Date: Apr 2007
Location: Austin, TX
Posts: 64
Default

Okay, so I know why VS .NET is mad about the DLL--it's unmanaged and you can't add references to unmanaged DLLs. However, I can still load the DLL and call the functions.

However, The encrypt (maybe more) function is accessing memory outside of its scope and causing the program to crash.

So, I'm still needing a way to access the encryption--whether I do it or I have a library that can do it.

Also, what am I doing wrong in the c++ application with the Encrypt/Decrypt?
I expected for the Decrypt to undo what Encrypt did.

Thanks!
Reply With Quote
Reply


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 10:15 AM.


 

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