@@ -93,7 +93,7 @@ public WolfSSLCertificate(byte[] der) throws WolfSSLException {
9393 }
9494
9595 x509Ptr = X509_load_certificate_buffer (der , WolfSSL .SSL_FILETYPE_ASN1 );
96- if (x509Ptr < = 0 ) {
96+ if (x509Ptr = = 0 ) {
9797 throw new WolfSSLException ("Failed to create WolfSSLCertificate" );
9898 }
9999
@@ -126,7 +126,7 @@ public WolfSSLCertificate(byte[] in, int format) throws WolfSSLException {
126126 }
127127
128128 x509Ptr = X509_load_certificate_buffer (in , format );
129- if (x509Ptr < = 0 ) {
129+ if (x509Ptr = = 0 ) {
130130 throw new WolfSSLException ("Failed to create WolfSSLCertificate" );
131131 }
132132
@@ -149,7 +149,7 @@ public WolfSSLCertificate(String fileName) throws WolfSSLException {
149149
150150 x509Ptr = X509_load_certificate_file (fileName ,
151151 WolfSSL .SSL_FILETYPE_ASN1 );
152- if (x509Ptr < = 0 ) {
152+ if (x509Ptr = = 0 ) {
153153 throw new WolfSSLException ("Failed to create WolfSSLCertificate" );
154154 }
155155
@@ -183,7 +183,7 @@ public WolfSSLCertificate(String fileName, int format)
183183 }
184184
185185 x509Ptr = X509_load_certificate_file (fileName , format );
186- if (x509Ptr < = 0 ) {
186+ if (x509Ptr = = 0 ) {
187187 throw new WolfSSLException ("Failed to create WolfSSLCertificate" );
188188 }
189189
@@ -199,8 +199,8 @@ public WolfSSLCertificate(String fileName, int format)
199199 */
200200 public WolfSSLCertificate (long x509 ) throws WolfSSLException {
201201
202- if (x509 < = 0 ) {
203- throw new WolfSSLException ("Input pointer may not be <= 0 " );
202+ if (x509 = = 0 ) {
203+ throw new WolfSSLException ("Input pointer may not be 0/NULL " );
204204 }
205205 x509Ptr = x509 ;
206206 this .active = true ;
0 commit comments