OpenCoverageOpenSSH

OpenSSH patch #15 - Test report of the modifications

Overview

Test Execution StatusStatistics
Passed
  0.000% (0/10)
Incident
  0.000% (0/10)
Skipped
  0.000% (0/10)
Failed
  0.000% (0/10)
Requires Manual Checking
  0.000% (0/10)
Unknown
  0.000% (0/10)
All
  0.000% (0/10)
CategoryRemoved LinesInserted LinesTotal
Modified lines executed:
   --    (0/0)
  0.000% (0/4)
  0.000% (0/4)
Modified lines not executed:
   --    (0/0)
  0.000% (0/4)
  0.000% (0/4)
Source code lines not instrumented:
   --    (0/0)
100.000% (4/4)
100.000% (4/4)

List of tests executing the changes

Execution NameState

Patch File

Showing: 

Modified File: sshkey.c

LineTestsDifference Output
diff --git a/sshkey.c b/sshkey.c
index 4bd975ce..63c01ea6 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -1863,12 +1863,14 @@ sshkey_from_private(const struct sshkey *k, struct sshkey **pkp)
1863 r = 0;
1864 out:
1865 sshkey_free(n);
1866
-
+#ifdef WITH_OPENSSL
1866 ➡ 1867 BN_clear_free(rsa_n_dup);
1867 ➡ 1868 BN_clear_free(rsa_e_dup);
1868 ➡ 1869 BN_clear_free(dsa_p_dup);
1869 ➡ 1870 BN_clear_free(dsa_q_dup);
1870 ➡ 1871 BN_clear_free(dsa_g_dup);
1871 ➡ 1872 BN_clear_free(dsa_pub_key_dup);
1873
-
+#endif
1872 ➡ 1874
1873 ➡ 1875 return r;
1874 ➡ 1876 }
@@ -1998,6 +2000,7 @@ cert_parse(struct sshbuf *b, struct sshkey *key, struct sshbuf *certbuf)
1998 ➡ 2000 return ret;
1999 ➡ 2001 }
2000 ➡ 2002
2003
-
+#ifdef WITH_OPENSSL
2001 ➡ 2004 static int
2002 ➡ 2005 check_rsa_length(const RSA *rsa)
2003 ➡ 2006 {
@@ -2008,6 +2011,7 @@ check_rsa_length(const RSA *rsa)
2008 ➡ 2011 return SSH_ERR_KEY_LENGTH;
2009 ➡ 2012 return 0;
2010 ➡ 2013 }
2014
-
+#endif
2011 ➡ 2015
2012 ➡ 2016 static int
2013 ➡ 2017 sshkey_from_blob_internal(struct sshbuf *b, struct sshkey **keyp,

Generated by Squish Coco 4.2.2