|
11 | 11 | * |
12 | 12 | * |
13 | 13 | * IDENTIFICATION |
14 | | - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.70 2005/08/23 21:02:03 momjian Exp $ |
| 14 | + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.71 2005/08/28 16:37:48 momjian Exp $ |
15 | 15 | * |
16 | 16 | * NOTES |
17 | 17 | * [ Most of these notes are wrong/obsolete, but perhaps not all ] |
@@ -880,6 +880,11 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey) |
880 | 880 | staticunsigned long |
881 | 881 | pq_threadidcallback(void) |
882 | 882 | { |
| 883 | +/* |
| 884 | + *This is not starndard-compliant. pthread_self() returns |
| 885 | + *pthread_t, and shouldn't be cast to unsigned long, but |
| 886 | + *CRYPTO_set_id_callback requires it, so we have to do it. |
| 887 | + */ |
883 | 888 | return (unsigned long)pthread_self(); |
884 | 889 | } |
885 | 890 |
|
|