qsslellipticcurve_openssl.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/network/ssl/qsslellipticcurve_openssl.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8QString QSslEllipticCurve::shortName() const-
9{-
10 QString result;-
11-
12 if (id != 0
id != 0Description
TRUEevaluated 268 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
)
10-268
13 result = QString::fromLatin1(q_OBJ_nid2sn(id));
executed 268 times by 1 test: result = QString::fromLatin1(q_OBJ_nid2sn(id));
Executed by:
  • tst_qsslellipticcurve - unknown status
268
14-
15 return
executed 278 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
result;
executed 278 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
278
16}-
17-
18QString QSslEllipticCurve::longName() const-
19{-
20 QString result;-
21-
22 if (id != 0
id != 0Description
TRUEevaluated 268 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
)
10-268
23 result = QString::fromLatin1(q_OBJ_nid2ln(id));
executed 268 times by 1 test: result = QString::fromLatin1(q_OBJ_nid2ln(id));
Executed by:
  • tst_qsslellipticcurve - unknown status
268
24-
25 return
executed 278 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
result;
executed 278 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
278
26}-
27-
28QSslEllipticCurve QSslEllipticCurve::fromShortName(const QString &name)-
29{-
30 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
)
2-68
31 return
executed 2 times by 1 test: return QSslEllipticCurve();
Executed by:
  • tst_qsslellipticcurve - unknown status
QSslEllipticCurve();
executed 2 times by 1 test: return QSslEllipticCurve();
Executed by:
  • tst_qsslellipticcurve - unknown status
2
32-
33 QSslSocketPrivate::ensureInitialized();-
34-
35 QSslEllipticCurve result;-
36-
37-
38 const QByteArray curveNameLatin1 = name.toLatin1();-
39-
40 int nid = q_OBJ_sn2nid(curveNameLatin1.data());-
41-
42-
43-
44-
45-
46-
47 result.id = nid;-
48-
49-
50 return
executed 68 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
result;
executed 68 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
68
51}-
52-
53QSslEllipticCurve QSslEllipticCurve::fromLongName(const QString &name)-
54{-
55 if (name.isEmpty()
name.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_qsslellipticcurve - unknown status
)
2-68
56 return
executed 2 times by 1 test: return QSslEllipticCurve();
Executed by:
  • tst_qsslellipticcurve - unknown status
QSslEllipticCurve();
executed 2 times by 1 test: return QSslEllipticCurve();
Executed by:
  • tst_qsslellipticcurve - unknown status
2
57-
58 QSslSocketPrivate::ensureInitialized();-
59-
60 QSslEllipticCurve result;-
61-
62-
63 const QByteArray curveNameLatin1 = name.toLatin1();-
64-
65 int nid = q_OBJ_ln2nid(curveNameLatin1.data());-
66 result.id = nid;-
67-
68-
69 return
executed 68 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
result;
executed 68 times by 1 test: return result;
Executed by:
  • tst_qsslellipticcurve - unknown status
68
70}-
71static const int tlsNamedCurveNIDs[] = {-
72-
73 721,-
74 722,-
75 723,-
76 724,-
77 725,-
78 726,-
79 727,-
80 728,-
81 729,-
82 730,-
83 731,-
84 732,-
85 733,-
86 734,-
87-
88 708,-
89 709,-
90 710,-
91 711,-
92 409,-
93 712,-
94 713,-
95 714,-
96 415,-
97 715,-
98 716,-
99-
100-
101 927,-
102 931,-
103 933-
104};-
105-
106static const size_t tlsNamedCurveNIDCount = sizeof(tlsNamedCurveNIDs) / sizeof(tlsNamedCurveNIDs[0]);-
107-
108bool QSslEllipticCurve::isTlsNamedCurve() const noexcept-
109{-
110 const int * const tlsNamedCurveNIDsEnd = tlsNamedCurveNIDs + tlsNamedCurveNIDCount;-
111 return
executed 1 time by 1 test: return std::find(tlsNamedCurveNIDs, tlsNamedCurveNIDsEnd, id) != tlsNamedCurveNIDsEnd;
Executed by:
  • tst_qsslellipticcurve - unknown status
std::find(tlsNamedCurveNIDs, tlsNamedCurveNIDsEnd, id) != tlsNamedCurveNIDsEnd;
executed 1 time by 1 test: return std::find(tlsNamedCurveNIDs, tlsNamedCurveNIDsEnd, id) != tlsNamedCurveNIDsEnd;
Executed by:
  • tst_qsslellipticcurve - unknown status
1
112}-
113-
114-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9