in reply to Question of safe data passing...

To answer your direct question, how about just creating a pipe in the C code and writing the data on that, then reading it from the perl script?

Another general approach I have seen taken to this problem is to store the (strongly encrypted) password in a file readable only by user x and then have the progrem accessing the password run setuid x to access the file.

traveler

Replies are listed 'Best First'.
Re: Re: Question of safe data passing...
by suaveant (Parson) on Apr 27, 2001 at 21:01 UTC
    I'm not sure how to open the pipe from C to perl, though I figured it could be done...

    I have an idea on how to do it in perl, but not really how to do it from C to perl in this fashion...
                    - Ant