{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1753169437,
"reponame":"openssl",
"desc":"OpenSSL",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"da015d686926db2715661e68b4bffc73",
"commit": {"type":"commit",
"time": 1498052735,
"time_ofs": 60,
"oid_tree": { "oid": "4ca50713ea735accfd42f1420b7d0cc0da62b54f", "alias": []},
"oid":{ "oid": "7721978ca8033fe4fe89a2fe673fea04436da15b", "alias": []},
"msg": "Add documentation for SSL_SESSION_set_cipher()",
"sig_commit": { "git_time": { "time": 1498052735, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" },
"sig_author": { "git_time": { "time": 1497364070, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" }},
"body": "Add documentation for SSL_SESSION_set_cipher()\n\nReviewed-by: Rich Salz \u003crsalz@openssl.org\u003e\n(Merged from https://github.com/openssl/openssl/pull/3670)\n"
,
"diff": "diff --git a/doc/man3/SSL_SESSION_get0_cipher.pod b/doc/man3/SSL_SESSION_get0_cipher.pod\nindex 3732c57..60f66a2 100644\n--- a/doc/man3/SSL_SESSION_get0_cipher.pod\n+++ b/doc/man3/SSL_SESSION_get0_cipher.pod\n@@ -2,13 +2,16 @@\n \n \u003dhead1 NAME\n \n-SSL_SESSION_get0_cipher - retrieve the SSL cipher associated with a session\n+SSL_SESSION_get0_cipher,\n+SSL_SESSION_set_cipher\n+- set and retrieve the SSL cipher associated with a session\n \n \u003dhead1 SYNOPSIS\n \n #include \u003copenssl/ssl.h\u003e\n \n const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s);\n+ int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher);\n \n \u003dhead1 DESCRIPTION\n \n@@ -18,21 +21,34 @@ connection when the session was created, or NULL if it cannot be determined.\n The value returned is a pointer to an object maintained within B\u003cs\u003e and\n should not be released.\n \n+SSL_SESSION_set_cipher() can be used to set the ciphersuite associated with the\n+SSL_SESSION B\u003cs\u003e to B\u003ccipher\u003e. For example, this could be used to set up a\n+session based PSK (see L\u003cSSL_CTX_set_psk_use_session_callback(3)\u003e).\n+\n+\u003dhead1 RETURN VALUES\n+\n+SSL_SESSION_get0_cipher() returns the SSL_CIPHER associated with the SSL_SESSION\n+or NULL if it cannot be determined.\n+\n+SSL_SESSION_set_cipher() returns 1 on success or 0 on failure.\n+\n \u003dhead1 SEE ALSO\n \n L\u003cssl(7)\u003e,\n L\u003cd2i_SSL_SESSION(3)\u003e,\n L\u003cSSL_SESSION_get_time(3)\u003e,\n L\u003cSSL_SESSION_get0_hostname(3)\u003e,\n-L\u003cSSL_SESSION_free(3)\u003e\n+L\u003cSSL_SESSION_free(3)\u003e,\n+L\u003cSSL_CTX_set_psk_use_session_callback(3)\u003e\n \n \u003dhead1 HISTORY\n \n-SSL_SESSION_get0_cipher() was first added to OpenSSL 1.1.0\n+SSL_SESSION_get0_cipher() was first added to OpenSSL 1.1.0.\n+SSL_SESSION_set_cipher() was first added to OpenSSL 1.1.1.\n \n \u003dhead1 COPYRIGHT\n \n-Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.\n+Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.\n \n Licensed under the OpenSSL license (the \u0022License\u0022). You may not use\n this file except in compliance with the License. You can obtain a copy\n","s":{"c":1753169437,"u": 27137}}
],"g": 28490,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}