dbTalk Databases Forums  

encryption passord between client and open server

comp.databases.sybase comp.databases.sybase


Discuss encryption passord between client and open server in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eric
 
Posts: n/a

Default encryption passord between client and open server - 07-16-2004 , 03:11 AM






Hello,
I have to implement encryption password between my clients and our open server.
Is there an easy way to do this with callback method ?

I saw in documentation that I have to write an encrypt function that will be
called when a callback event occur.

I don't really know what to put in this function ...
May someone help me ?

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: encryption passord between client and open server - 07-16-2004 , 11:48 AM






Hello,

Take a look at the Open Server sample program "ctos". In particular
take a look at the file "connect.c":
/*
** CTOS_ENCRYPTCB
**
** Callback for negotiated logins (password-encryption type).
** Relay encryption keys from remote server
** to remote client, and encrypted passwords from
** remote client to remote server.
**
** Parameters:
** conn Remote server connection.
** pwd Password to be encrypted (set by CT-Libary).
** pwdlen Original length of password.
** key Encryption key from remote server.
** keylen Length of key.
** buf Space for encrypted password from remote client.
** buflen Length of space.
** outlen Length of encrypted password.
**
** Returns:
** CS_FAIL or CS_SUCCEED.
*/

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.