mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-13 02:59:34 +00:00
More fixes for issues reported by ICC.
Covers conversion to lower precision value, and unused code/variable. I didn't remove the unused function from the botan part - just noted it. svn path=/trunk/kdesupport/qca/; revision=535288
This commit is contained in:
parent
55ff6eeb8f
commit
b2aedd5a71
1
TODO
1
TODO
@ -44,6 +44,7 @@
|
||||
other:
|
||||
ability to force internal certs
|
||||
Update to latest Botan, and remake the botantools patch as appropriate
|
||||
- remove u32bit miller_rabin_test_iterations(u32bit bits, bool verify)
|
||||
ability to compile plugins in statically (check 'plugins' subdir)
|
||||
|
||||
* Considerations
|
||||
|
@ -49,7 +49,8 @@ int main(int argc, char **argv)
|
||||
// use something like:
|
||||
unsigned char randChar;
|
||||
randChar = QCA::Random::randomChar();
|
||||
|
||||
// It might not be printable, so this may not produce output
|
||||
std::cout << "A random character: " << randChar << std::endl;
|
||||
|
||||
QSecureArray tenBytes(10);
|
||||
// If you need more random values, you may want to
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
struct Item
|
||||
{
|
||||
int plain;
|
||||
int encoded;
|
||||
qint64 encoded;
|
||||
};
|
||||
|
||||
LayerTracker()
|
||||
@ -98,7 +98,7 @@ public:
|
||||
list += i;
|
||||
}
|
||||
|
||||
int finished(int encoded)
|
||||
int finished(qint64 encoded)
|
||||
{
|
||||
int plain = 0;
|
||||
for(QList<Item>::Iterator it = list.begin(); it != list.end();) {
|
||||
@ -222,7 +222,7 @@ private slots:
|
||||
void sock_bytesWritten(qint64 x)
|
||||
{
|
||||
if(mode == Active && sent) {
|
||||
int bytes = layer.finished(x);
|
||||
qint64 bytes = layer.finished(x);
|
||||
bytesLeft -= bytes;
|
||||
|
||||
if(bytesLeft == 0) {
|
||||
@ -299,7 +299,7 @@ private:
|
||||
|
||||
bool sent;
|
||||
int mode;
|
||||
int bytesLeft;
|
||||
qint64 bytesLeft;
|
||||
LayerTracker layer;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user