Oh okay, yeah I noticed that it was along those lines but I didn't know if it would be wrong to do that.
So now I have everything working correctly, I just want the function to return an array, not be void. But as I'm thinking about it it's not possible to return an array right? I must return a pointer? I'm not really sure how this works but is it along these lines?
Last edited by bigdrock44; 12-21-2010 at 10:29 PM..
Is it possible for a internal LAN to mask a IP e.g. i have a server ip running the intranet ip being 192.168.0.8 and i want to make that like www.intranet.com is this possible on a internal network ? (1 Reply)
Hello,
I need to know that whether a content of a string can be hidden or masked inside a shell script.
My Sample Code is given below
<Code>
#!/usr/bin/ksh
Userid=test
DB=temp
Passwd=`java Decryption test`
# The Above command will get the encryped password for "test" user id and store... (2 Replies)
I have a pipe delimited file that I need to 'mask' to before loading to keep some data confidential. I need to maintain the first 4 bytes of certain columns and replace the remaining bytes with an 'x'. I would like to maintain spaces but it's not a requirement.
Example, need to mask columns 2... (2 Replies)
Hi,
I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit.
At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Hi I am facing an issue with the below script which has the below line
each field being separated with a tab.
I need to mask the 8 and 7th field based on following conditions
1. 8th field is 16 in length and is numerics
i will mask the middle 6 digits except the first 6 and last 4.
input... (2 Replies)
Is there a way to mask the password inside of a script to minimize the impact of a comprimised server? So
ssh -o "PasswordAuthentication no" -o "HostbasedAuthentication yes" -l testuser 192.168.3.1 "mysqldump --opt --all-databases -u root -pPassword| gzip" > $backup_dir/mysqldump.gz
a... (2 Replies)
I have a requirement of masking few specific fields in the UNIX file. The details are as following-
File is fixed length file with each record of 250 charater length.
2 fields needs to be masked – the positions are 21:30 and 110:120
The character by character making needs to be done which... (5 Replies)
My file "test.dat" data as below
Requirement is to mask(replace) all english characters with "X" EXCEPT first 7 characters of every line.
my command
awk '{gsub("]","X")}1' test.dat
looks not working properly, Appreciate any suggestion... (6 Replies)
Discussion started by: JSKOBS
6 Replies
LEARN ABOUT NETBSD
ssl_ctx_set_default_passwd_cb
SSL_CTX_set_default_passwd_cb(3) OpenSSL SSL_CTX_set_default_passwd_cb(3)NAME
SSL_CTX_set_default_passwd_cb, SSL_CTX_set_default_passwd_cb_userdata - set passwd callback for encrypted PEM file handling
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include <openssl/ssl.h>
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);
void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
int pem_passwd_cb(char *buf, int size, int rwflag, void *userdata);
DESCRIPTION
SSL_CTX_set_default_passwd_cb() sets the default password callback called when loading/storing a PEM certificate with encryption.
SSL_CTX_set_default_passwd_cb_userdata() sets a pointer to userdata which will be provided to the password callback on invocation.
The pem_passwd_cb(), which must be provided by the application, hands back the password to be used during decryption. On invocation a
pointer to userdata is provided. The pem_passwd_cb must write the password into the provided buffer buf which is of size size. The actual
length of the password must be returned to the calling function. rwflag indicates whether the callback is used for reading/decryption
(rwflag=0) or writing/encryption (rwflag=1).
NOTES
When loading or storing private keys, a password might be supplied to protect the private key. The way this password can be supplied may
depend on the application. If only one private key is handled, it can be practical to have pem_passwd_cb() handle the password dialog
interactively. If several keys have to be handled, it can be practical to ask for the password once, then keep it in memory and use it
several times. In the last case, the password could be stored into the userdata storage and the pem_passwd_cb() only returns the password
already stored.
When asking for the password interactively, pem_passwd_cb() can use rwflag to check, whether an item shall be encrypted (rwflag=1). In
this case the password dialog may ask for the same password twice for comparison in order to catch typos, that would make decryption
impossible.
Other items in PEM formatting (certificates) can also be encrypted, it is however not usual, as certificate information is considered
public.
RETURN VALUES
SSL_CTX_set_default_passwd_cb() and SSL_CTX_set_default_passwd_cb_userdata() do not provide diagnostic information.
EXAMPLES
The following example returns the password provided as userdata to the calling function. The password is considered to be a '