Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: openssl/patches/x509_hash_name_algorithm_change.patch

Issue 12459028: Restore the x509_hash_name_alpgorithm_change patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/openssl/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 diff -burN android-openssl.orig/crypto/x509/by_dir.c android-openssl/crypto/x509 /by_dir.c
2 --- android-openssl.orig/crypto/x509/by_dir.c 2013-03-21 16:48:31.546092948 +0 100
3 +++ android-openssl/crypto/x509/by_dir.c 2013-03-21 16:48:44.916234272 +0 100
4 @@ -287,6 +287,8 @@
5 int ok=0;
6 int i,j,k;
7 unsigned long h;
8 + unsigned long hash_array[2];
9 + int hash_index;
10 BUF_MEM *b=NULL;
11 X509_OBJECT stmp,*tmp;
12 const char *postfix="";
13 @@ -323,6 +325,11 @@
14 ctx=(BY_DIR *)xl->method_data;
15
16 h=X509_NAME_hash(name);
17 + hash_array[0]=h;
18 + hash_array[1]=X509_NAME_hash_old(name);
19 + for (hash_index=0; hash_index < 2; hash_index++)
20 + {
21 + h=hash_array[hash_index];
22 for (i=0; i < sk_BY_DIR_ENTRY_num(ctx->dirs); i++)
23 {
24 BY_DIR_ENTRY *ent;
25 @@ -476,6 +483,7 @@
26 goto finish;
27 }
28 }
29 + }
30 finish:
31 if (b != NULL) BUF_MEM_free(b);
32 return(ok);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698