Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on March 18, 2004, 01:22 AM

Title: Question About BNLS_CONFIRMLOGON (0x0A)
Post by: ChR0NiC on March 18, 2004, 01:22 AM
Once I receive 0x56 password change success from BNET. The BNLS protocol says I should send 0x0A to BNLS along with the data. I was wondering what the point of this is....when you could simply just login from their....if there is a reason....I want to know what it is...
Title: Re:Question About BNLS_CONFIRMLOGON (0x0A)
Post by: MyndFyre on March 18, 2004, 02:47 AM
Quote from: ChR0NiC on March 18, 2004, 01:22 AM
Once I receive 0x56 password change success from BNET. The BNLS protocol says I should send 0x0A to BNLS along with the data. I was wondering what the point of this is....when you could simply just login from their....if there is a reason....I want to know what it is...

Quote
** This proves the Battle.net server knows your password. The client should use BNLS_CONFIRMLOGON (0x0a) to verify the proof, and if it is incorrect, terminate the connection.

That is how the official clients do it.  Therefore, to ensure compatibility, you should too.
Title: Re:Question About BNLS_CONFIRMLOGON (0x0A)
Post by: ChR0NiC on March 18, 2004, 02:59 AM
Well, I already had it configured to do so, but it wasn't using it. But now it is...... :D
Title: Re:Question About BNLS_CONFIRMLOGON (0x0A)
Post by: ChR0NiC on March 18, 2004, 09:00 PM
So when should I use this packet.....in response to BNLS_0x03?
Title: Re:Question About BNLS_CONFIRMLOGON (0x0A)
Post by: MyndFyre on March 19, 2004, 01:18 AM
After SID_AUTH_ACCOUNTLOGONPROOF (0x54) S->C

Response:
---------

(DWORD) Status code.*
(5 DWORDs) Password proof.**


After SID_AUTH_ACCOUNTCHANGEPROOF (0x56) S->C

Response:
---------

(DWORD) Status code.*
(5 DWORDs) Password proof.**


And after SID_AUTH_ACCOUNTUPGRADEPROOF (0x58) S->C

Response:
---------

(DWORD) Status code.*
(5 DWORDs) Password proof.**


Cheers.

[edit] In the future, instead of replying to your own post when nobody else has replied to it, utilize the modify feature. [/edit]
Title: Re:Question About BNLS_CONFIRMLOGON (0x0A)
Post by: ChR0NiC on March 19, 2004, 01:19 AM
Thanks Alot Man ^_^