OLD | NEW |
(Empty) | |
| 1 --- openssl-1.0.0f-origin/crypto/x509/by_dir.c 2012-01-19 02:20:24.821550944 +0
800 |
| 2 +++ openssl-1.0.0f/crypto/x509/by_dir.c 2012-01-19 23:36:53.597870429 +0800 |
| 3 @@ -287,6 +287,8 @@ |
| 4 int ok=0; |
| 5 int i,j,k; |
| 6 unsigned long h; |
| 7 + unsigned long hash_array[2]; |
| 8 + int hash_index; |
| 9 BUF_MEM *b=NULL; |
| 10 X509_OBJECT stmp,*tmp; |
| 11 const char *postfix=""; |
| 12 @@ -323,6 +325,11 @@ |
| 13 ctx=(BY_DIR *)xl->method_data; |
| 14 |
| 15 h=X509_NAME_hash(name); |
| 16 + hash_array[0]=h; |
| 17 + hash_array[1]=X509_NAME_hash_old(name); |
| 18 + for (hash_index=0; hash_index < 2; hash_index++) |
| 19 + { |
| 20 + h=hash_array[hash_index]; |
| 21 for (i=0; i < sk_BY_DIR_ENTRY_num(ctx->dirs); i++) |
| 22 { |
| 23 BY_DIR_ENTRY *ent; |
| 24 @@ -476,6 +483,7 @@ |
| 25 goto finish; |
| 26 } |
| 27 } |
| 28 + } |
| 29 finish: |
| 30 if (b != NULL) BUF_MEM_free(b); |
| 31 return(ok); |
OLD | NEW |