Commit 333bb36
committed
ssl: return nil in SSL::SSLSocket#cipher if session is not started
SSL_get_current_cipher() returns NULL if no session is established yet.
Return nil in that case rather than an useless value like
["(NONE)", "(NONE)", 0, 32722].
Also, keep the constness of the SSL_CIPHER.1 parent 3e8ae12 commit 333bb36
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1997 | 1997 | | |
1998 | 1998 | | |
1999 | 1999 | | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
2005 | 2006 | | |
2006 | 2007 | | |
2007 | 2008 | | |
2008 | 2009 | | |
2009 | | - | |
| 2010 | + | |
2010 | 2011 | | |
2011 | 2012 | | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
| 2013 | + | |
| 2014 | + | |
2016 | 2015 | | |
2017 | 2016 | | |
2018 | 2017 | | |
| |||
0 commit comments