Skip to content

Commit

Permalink
move WolfSSLImplementSSLSession variables to top of scope, add licens…
Browse files Browse the repository at this point in the history
…e header to WolfSSLInternalVerifyCb.java
  • Loading branch information
cconlon committed Nov 4, 2021
1 parent 4db73ba commit 3930359
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ public synchronized Certificate[] getPeerCertificates()
throws SSLPeerUnverifiedException {
long x509;
WolfSSLX509 cert;
CertificateFactory cf;
ByteArrayInputStream der;
X509Certificate exportCert;

if (ssl == null) {
throw new SSLPeerUnverifiedException("handshake not complete");
Expand Down Expand Up @@ -241,9 +244,6 @@ public synchronized Certificate[] getPeerCertificates()

/* convert WolfSSLX509 into X509Certificate so we can release
* our native memory */
CertificateFactory cf;
ByteArrayInputStream der;
X509Certificate exportCert;
try {
cf = CertificateFactory.getInstance("X.509");
} catch (CertificateException ex) {
Expand Down
20 changes: 20 additions & 0 deletions src/java/com/wolfssl/provider/jsse/WolfSSLInternalVerifyCb.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/* WolfSSLInternalVerifyCb.java
*
* Copyright (C) 2006-2021 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* wolfSSL is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
package com.wolfssl.provider.jsse;

import com.wolfssl.WolfSSL;
Expand Down

0 comments on commit 3930359

Please sign in to comment.