• Alex Klyubin's avatar
    Make setEnabledProtocols/CipherSuites copy their inputs. · 35f7742c
    Alex Klyubin authored
    SSLSocket, SSLServerSocket, and SSLEngine offer setEnabledProtocols
    and setEnabledCipherSuites methods which take an array of protocols
    or cipher suites as input. If these methods store references to the
    input arrays, then the internal state (lists of enabled protocols and
    cipher suites) of SSLSocket, SSLServerSocket, and SSLEngine could be
    modified without going through the setter methods of these classes.
    
    Bug: 15753142
    Change-Id: Ia5248050d81320ed1da99892278bd60872605f52
    35f7742c
SSLParametersImpl.java 36.1 KB