09-23-2011
Ok... fine...but I am not getting anything in my mind.... Please provide me some hint, so I can try to think about it....
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file xx like this
abc
abcd
abc
abcd
abcd
efgh
ijkl
mnop qrst
uv wxyz
Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like
abcd
efgh
ijkl
mnop qrst
uv wxyz (2 Replies)
Discussion started by: joy_deep
2 Replies
2. Shell Programming and Scripting
I have a file xx like this
abc
abcd
abc
abcd
abcd
efgh
ijkl
mnop qrst
uv wxyz
Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like
abcd
efgh
ijkl
mnop qrst
uv wxyz (5 Replies)
Discussion started by: joy_deep
5 Replies
3. Programming
I am making a program in c. I want the progrm to be able to display file names ( like in unix we do long lisiting)
what should i do?
Any help will be appreciated (3 Replies)
Discussion started by: programlover
3 Replies
4. Shell Programming and Scripting
Hi,
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
Discussion started by: abinash
3 Replies
5. Shell Programming and Scripting
*****************************************
Right now i have this current system.
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which... (7 Replies)
Discussion started by: abinash
7 Replies
6. Shell Programming and Scripting
How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall:
For example a course record file can be like this:
COURSE NAME: Operating Systems
CREDITS: 4
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies
7. Homework & Coursework Questions
How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall:
For example a course record file can be like this:
COURSE NAME: Operating Systems
CREDITS: 4
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies
8. Shell Programming and Scripting
I am new to shell scripting plz help me to get solution for below requirement -
If name.sh file is present, message will be displayed as “name.sh is present” else "name.sh is not present"
I have tested below script but getting error.
#!/bin/ksh
file_found=`ls name.sh`
found=`echo $?`
if... (6 Replies)
Discussion started by: rahulbahulekar
6 Replies
9. Shell Programming and Scripting
Hi All,
I need to recursively grep several folders for a MAC address and display the results with the date of the file name at the start. Even better would be if the final results were displayed chronologically so the newest file is always at the end. Oldest at the top, regardless of what... (8 Replies)
Discussion started by: quemalr
8 Replies
LEARN ABOUT CENTOS
ssl_use_psk_identity_hint
SSL_CTX_use_psk_identity_hint(3) OpenSSL SSL_CTX_use_psk_identity_hint(3)
NAME
SSL_CTX_use_psk_identity_hint, SSL_use_psk_identity_hint, SSL_CTX_set_psk_server_callback, SSL_set_psk_server_callback - set PSK identity
hint to use
SYNOPSIS
#include <openssl/ssl.h>
int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *hint);
int SSL_use_psk_identity_hint(SSL *ssl, const char *hint);
void SSL_CTX_set_psk_server_callback(SSL_CTX *ctx,
unsigned int (*callback)(SSL *ssl, const char *identity,
unsigned char *psk, int max_psk_len));
void SSL_set_psk_server_callback(SSL *ssl,
unsigned int (*callback)(SSL *ssl, const char *identity,
unsigned char *psk, int max_psk_len));
DESCRIPTION
SSL_CTX_use_psk_identity_hint() sets the given NULL-terminated PSK identity hint hint to SSL context object ctx.
SSL_use_psk_identity_hint() sets the given NULL-terminated PSK identity hint hint to SSL connection object ssl. If hint is NULL the current
hint from ctx or ssl is deleted.
In the case where PSK identity hint is NULL, the server does not send the ServerKeyExchange message to the client.
A server application must provide a callback function which is called when the server receives the ClientKeyExchange message from the
client. The purpose of the callback function is to validate the received PSK identity and to fetch the pre-shared key used during the
connection setup phase. The callback is set using functions SSL_CTX_set_psk_server_callback() or SSL_set_psk_server_callback(). The
callback function is given the connection in parameter ssl, NULL-terminated PSK identity sent by the client in parameter identity, and a
buffer psk of length max_psk_len bytes where the pre-shared key is to be stored.
RETURN VALUES
SSL_CTX_use_psk_identity_hint() and SSL_use_psk_identity_hint() return 1 on success, 0 otherwise.
Return values from the server callback are interpreted as follows:
> 0 PSK identity was found and the server callback has provided the PSK successfully in parameter psk. Return value is the length of psk in
bytes. It is an error to return a value greater than max_psk_len.
If the PSK identity was not found but the callback instructs the protocol to continue anyway, the callback must provide some random
data to psk and return the length of the random data, so the connection will fail with decryption_error before it will be finished
completely.
0 PSK identity was not found. An "unknown_psk_identity" alert message will be sent and the connection setup fails.
1.0.1e 2014-06-17 SSL_CTX_use_psk_identity_hint(3)