mbedTLS + 0/1 examples
SourceVu will show references to mbedtls_ssl_conf_psk() from the following samples and libraries:
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData Use

Return value

\c 0 if successful. #MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE if no more PSKs can be configured. In this case, the old PSK(s) remain intact. Another negative error code on other kinds of failure.

Notes

This is mainly useful for clients. Servers will usually want to use \c mbedtls_ssl_conf_psk_cb() instead. A PSK set by \c mbedtls_ssl_set_hs_psk() in the PSK callback takes precedence over a PSK configured by this function. The PSK and its identity are copied internally and hence need not be preserved by the caller for the lifetime of the SSL configuration.

References

from 0/1 examples