Line
Link Here
|
0 |
-- efl-1.8.6.orig/src/lib/eet/eet_cipher.c |
0 |
++ efl-1.8.6/src/lib/eet/eet_cipher.c |
Lines 681-687
eet_identity_check(const void *data_ba
Link Here
|
681 |
gnutls_datum_t datum; |
681 |
gnutls_datum_t datum; |
682 |
gnutls_datum_t signature; |
682 |
gnutls_datum_t signature; |
683 |
gnutls_pubkey_t pubkey; |
683 |
gnutls_pubkey_t pubkey; |
684 |
gnutls_digest_algorithm_t hash_algo; |
|
|
685 |
unsigned char *hash; |
684 |
unsigned char *hash; |
686 |
gcry_md_hd_t md; |
685 |
gcry_md_hd_t md; |
687 |
int err; |
686 |
int err; |
Lines 718-728
eet_identity_check(const void *data_ba
Link Here
|
718 |
|
717 |
|
719 |
if (gnutls_pubkey_import_x509(pubkey, cert, 0) < 0) |
718 |
if (gnutls_pubkey_import_x509(pubkey, cert, 0) < 0) |
720 |
goto on_error; |
719 |
goto on_error; |
721 |
|
720 |
|
722 |
if (gnutls_pubkey_get_verify_algorithm(pubkey, &signature, &hash_algo) < 0) |
721 |
int algo = gnutls_x509_crt_get_signature_algorithm(cert); |
|
|
722 |
if (algo < 0) |
723 |
goto on_error; |
723 |
goto on_error; |
724 |
|
724 |
|
725 |
if (gnutls_pubkey_verify_hash(pubkey, 0, &datum, &signature) < 0) |
725 |
if (gnutls_pubkey_verify_hash2(pubkey,algo, 0, &datum, &signature) < 0) |
726 |
goto on_error; |
726 |
goto on_error; |
727 |
|
727 |
|
728 |
if (sha1) |
728 |
if (sha1) |