SSL_get_psk_identity(3SSL) OpenSSL SSL_get_psk_identity(3SSL)NAME
SSL_get_psk_identity, SSL_get_psk_identity_hint - get PSK client identity and hint
SYNOPSIS
#include <openssl/ssl.h>
const char *SSL_get_psk_identity_hint(const SSL *ssl);
const char *SSL_get_psk_identity(const SSL *ssl);
DESCRIPTION
SSL_get_psk_identity_hint() is used to retrieve the PSK identity hint used during the connection setup related to SSL object ssl.
Similarly, SSL_get_psk_identity() is used to retrieve the PSK identity used during the connection setup.
RETURN VALUES
If non-NULL, SSL_get_psk_identity_hint() returns the PSK identity hint and SSL_get_psk_identity() returns the PSK identity. Both are
NULL-terminated. SSL_get_psk_identity_hint() may return NULL if no PSK identity hint was used during the connection setup.
Note that the return value is valid only during the lifetime of the SSL object ssl.
1.0.1e 2013-02-11 SSL_get_psk_identity(3SSL)
Check Out this Related Man Page
SSL_CTX_use_psk_identity_hint(3SSL) OpenSSL SSL_CTX_use_psk_identity_hint(3SSL)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.0e 2013-02-18 SSL_CTX_use_psk_identity_hint(3SSL)
I need help!Many Thanks!
Now,I try to manage the shared memory inter-process .
Inevitably,I have to deal with the synchronous.
I know the pthread_rwlock in posix,and I compile ,then run successfully in Red Hat Enterprise 4.
I have a doubt about whether the Posix supports the system such as... (1 Reply)
Hi all,
I'm a user and a programmer of UNIX based systems (mainly FreeBSD and Linux).
I have never programmed or tried to fully understand the kernel layer. I haven't a special propouse for learning it, but I'd like to. Can anyone suggest me books, documentation or examples that may help me... (2 Replies)
Hi friends,
I hope everybody is fine. I have been studing operating system concepts at college, and I find this subject very interesting. I've decided that I must go into this field no matter what, hopefully someday I would design my own operating system. I have two choices infront of me, studying... (9 Replies)
I am thinking of developing an app' for Android mobile devices...
Two questions here:-
1) Does anyone _develop_ for the Android _mobile_ platform?
If so do you use OSX 10.7.5 or greater as your _development_platform_?
2) I know ********* is gonna say that the Android terminal/shell is... (13 Replies)
Hi everyone,
I know the following questions are noobish questions but I am asking them because I am confused about the basics of history behind UNIX and LINUX.
Ok onto business, my questions are-:
Was/Is UNIX ever an open source operating system ?
If UNIX was... (21 Replies)
Hi all,
I hope you are fine,
I'd like study Os I tried a book like Silberschatz it's a good book but like
other books it talks about the concepts abstractly and that's due to it try
to encompass many concepts from many operating systems in GENERAL.
i am not too much comfortable from these... (20 Replies)
I'm new on the site and do not write very well in English, I am now using osx platform and was attracted to her. For several searches on random websites for Unix content yours was the best and most interesting, I registered and already visualized some very interesting content. But I wonder where... (3 Replies)
Hi everyone,
I am new to this forum and this is my very first post, one i think i will look back at many years from now and have nothing to regret about.
This is simply because i recently installed Linux (Ubuntu) on my system and downloaded a book titled, The Unix Programming Environment. I... (7 Replies)
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)