Completed
Pull Request — master (#17)
by Jan
02:43
created

GlobalFunctionsMock.php ➔ openssl_verify()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 4
dl 0
loc 4
rs 10
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Crypto;
4
5
function openssl_sign($data, &$signature, $priv_key_id, $signature_alg = OPENSSL_ALGO_SHA1)
6
{
7
	return false;
8
}
9
10
function openssl_verify($data, $signature, $pub_key_id, $signature_alg = OPENSSL_ALGO_SHA1)
11
{
12
	return -1;
13
}
14
15
function openssl_error_string()
16
{
17
	return 'error_message';
18
}
19