LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2006, 12:14 AM   #1
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
how does function callback works ??


how does callback works ??
is it common among authoritization and authentication stuffs for master/slaves communication ??
what are the commonly used "encrytion" libraries just for the authoritization and authentication part ??

//thanks in advance ...


.
 
Old 05-11-2006, 01:14 AM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Callback functions work by passing and saving a pointer to a function that is called on certain events. OpenSSL, for example, is used for many cryptography related stuff, not just authentication.
 
Old 05-11-2006, 01:28 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you referring to callback functions, or the practice of having modems return a call to a known host instead of connecting directly?

A callback function is when you write a function to do something, but it is the operating system or sysem library that calls your function. There will usually be a standard method of registering your function so that it will be run. This is a common method of having drivers run userland code, and is also used a lot in GUI frameworks.

I would suggest you read about it in wikipedia for a start. The author will explain it a lot better then I have. http://en.wikipedia.org/wiki/Callbac...ter_science%29

Last edited by jschiwal; 05-12-2006 at 07:24 AM.
 
Old 05-12-2006, 12:37 AM   #4
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658

Original Poster
Blog Entries: 8

Rep: Reputation: 31
is it ok if using i only use libshadow/libcrypt for "on-disk" type of password challenge for simple program ??

i still have problem figuring out how people do their tunneling ... thanks for your good suggestion , you changed your sig again ... cool ^_^


to jschiwal , thanks for the link ... i usually dont like "wikipedia" kinds of things , but this time ... hmm ... they are not that bad after all ... thanks for the good advice i got my mockup running(at least) now after reading that link ...



//great people we have here ...


.

Last edited by alred; 05-12-2006 at 12:39 AM.
 
Old 05-12-2006, 12:47 AM   #5
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Quote:
Originally Posted by alred
is it ok if using i only use libshadow/libcrypt for "on-disk" type of password challenge for simple program ??
Well yes. You set the program setuid, ask an username, then you do a getspnam() or getpwnam() on systems that return the encrypted password through it. You only have to ask for the password, encrypt it, and then compare it with the hashed version. For the salt to use with crypt(), use the first bytes (it varies from system to system).

Quote:
i still have problem figuring out how people do their tunneling ...
Tunneling through SSL ? I still haven't tried it. Browse openssl.org for their howto. There must be tutorials on the web. If you find good stuff, let me know
 
Old 05-12-2006, 01:07 AM   #6
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658

Original Poster
Blog Entries: 8

Rep: Reputation: 31
>> "it varies from system to system ..."

thanks a lot ... will --> more ...



//cheers ...

.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setTimeObject CallBack time function branens Programming 0 02-16-2005 04:30 AM
Problem with Callback! Linuxnewbie Linux - Networking 1 02-24-2004 01:55 AM
C input function that works good? MadCactus Programming 8 12-24-2003 04:46 PM
ISDN + callback zeky Linux - General 0 12-25-2002 07:15 AM
Dailup callback Bogdan Linux - Newbie 0 12-21-2001 02:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration