Skip to content

Commit 3930359

Browse files
committed
move WolfSSLImplementSSLSession variables to top of scope, add license header to WolfSSLInternalVerifyCb.java
1 parent 4db73ba commit 3930359

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

src/java/com/wolfssl/provider/jsse/WolfSSLImplementSSLSession.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ public synchronized Certificate[] getPeerCertificates()
214214
throws SSLPeerUnverifiedException {
215215
long x509;
216216
WolfSSLX509 cert;
217+
CertificateFactory cf;
218+
ByteArrayInputStream der;
219+
X509Certificate exportCert;
217220

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

242245
/* convert WolfSSLX509 into X509Certificate so we can release
243246
* our native memory */
244-
CertificateFactory cf;
245-
ByteArrayInputStream der;
246-
X509Certificate exportCert;
247247
try {
248248
cf = CertificateFactory.getInstance("X.509");
249249
} catch (CertificateException ex) {

src/java/com/wolfssl/provider/jsse/WolfSSLInternalVerifyCb.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/* WolfSSLInternalVerifyCb.java
2+
*
3+
* Copyright (C) 2006-2021 wolfSSL Inc.
4+
*
5+
* This file is part of wolfSSL.
6+
*
7+
* wolfSSL is free software; you can redistribute it and/or modify
8+
* it under the terms of the GNU General Public License as published by
9+
* the Free Software Foundation; either version 2 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* wolfSSL is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Public License
18+
* along with this program; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20+
*/
121
package com.wolfssl.provider.jsse;
222

323
import com.wolfssl.WolfSSL;

0 commit comments

Comments
 (0)