mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
unfortunately my tab/spc config was wrong for a couple of years. fixed all tabs=>spaces+re-indent
This commit is contained in:
@@ -65,10 +65,10 @@ void test0() {
|
||||
DECRYPTED = _openrd("testcppdecrypted", CA);
|
||||
char *got = (char *)ucmalloc(10);
|
||||
if(fread(got, 1, 6, DECRYPTED) < 6) {
|
||||
throw pcp::exception(CA, "read error, could not read decrypted content");
|
||||
throw pcp::exception(CA, "read error, could not read decrypted content");
|
||||
}
|
||||
if(strncmp(got, "HALLO", 5) != 0) {
|
||||
throw pcp::exception(CA);
|
||||
throw pcp::exception(CA);
|
||||
}
|
||||
free(got);
|
||||
}
|
||||
|
||||
@@ -118,22 +118,22 @@ int main(int argc, char **argv) {
|
||||
back = pcp_z85_decode(ptx, raw, &zlen);
|
||||
if(back == NULL) {
|
||||
if(mode > 3) {
|
||||
/* expected fail */
|
||||
ret = TRUE;
|
||||
/* expected fail */
|
||||
ret = TRUE;
|
||||
}
|
||||
else {
|
||||
/* expected ok */
|
||||
ret = FALSE;
|
||||
/* expected ok */
|
||||
ret = FALSE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(mode > 3) {
|
||||
/* expected fail */
|
||||
ret = FALSE;
|
||||
/* expected fail */
|
||||
ret = FALSE;
|
||||
}
|
||||
else {
|
||||
/* expected ok */
|
||||
ret = TRUE;
|
||||
/* expected ok */
|
||||
ret = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -143,7 +143,7 @@ int main(int argc, char **argv) {
|
||||
if(mode <= 3 && memcmp(back, clear, 256) != 0) {
|
||||
ret = FALSE;
|
||||
if(ptx->pcp_errset == 0) {
|
||||
fatal(ptx, "decoded content doesn't match\n");
|
||||
fatal(ptx, "decoded content doesn't match\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ include keys.cfg
|
||||
Dexter Morgan
|
||||
dxmorg@florida.cops.gov
|
||||
EOF
|
||||
expect = /Generated new secret key/
|
||||
expect = /Generated new secret key/
|
||||
</test>
|
||||
|
||||
<test check-fail-entropy-generate-secret-key>
|
||||
@@ -113,7 +113,7 @@ Dexter Morgan
|
||||
dxmorg@florida.cops.gov
|
||||
no
|
||||
EOF
|
||||
expect = /weak passphrase/
|
||||
expect = /weak passphrase/
|
||||
</test>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user