diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/CryptoPP/cpp_rsau.h | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/cpp_rsau.h')
-rw-r--r-- | plugins/CryptoPP/cpp_rsau.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CryptoPP/cpp_rsau.h b/plugins/CryptoPP/cpp_rsau.h index adb017c18b..ae41e64def 100644 --- a/plugins/CryptoPP/cpp_rsau.h +++ b/plugins/CryptoPP/cpp_rsau.h @@ -12,7 +12,7 @@ public: string encode() {
map<u_char,string>::const_iterator i;
string b;
- for( i=data.begin(); i!=data.end(); ++i ) {
+ for ( i=data.begin(); i!=data.end(); ++i ) {
b += tlv(i->first,i->second);
}
return b;
@@ -23,7 +23,7 @@ public: string r = b;
while( r.length() ) {
t = un_tlv(r,v);
- if( t==-1 ) {
+ if ( t==-1 ) {
break;
}
data[t] = v;
@@ -46,16 +46,16 @@ private: u_char un_tlv(string& b, string& v) {
string r; v = r;
u_int t = 0;
- if( b.length() > 3 ) {
+ if ( b.length() > 3 ) {
b.copy((char*)&t,3);
u_int l = t>>8;
t &= 0xFF;
- if( b.length() >= 3+l ) {
+ if ( b.length() >= 3+l ) {
v = b.substr(3,l);
r = b.substr(3+l);
}
}
- if( !v.length() ) {
+ if ( !v.length() ) {
return -1;
}
b = r;
|