1
0

patch-conn_c 837 B

123456789101112131415161718192021222324
  1. --- ruby-ldap-0.9.8.orig/conn.c 2009-03-25 10:25:27.000000000 +0100
  2. +++ ruby-ldap-0.9.8/conn.c 2011-11-15 10:22:30.847665438 +0100
  3. @@ -497,8 +497,8 @@ rb_ldap_conn_set_option (VALUE self, VAL
  4. #ifdef LDAP_OPT_X_TLS_KEYFILE
  5. case LDAP_OPT_X_TLS_KEYFILE:
  6. #endif
  7. -#ifdef LDAP_OPT_X_TLS_PROTOCOL
  8. - case LDAP_OPT_X_TLS_PROTOCOL:
  9. +#ifdef LDAP_OPT_X_TLS_PROTOCOL_MIN
  10. + case LDAP_OPT_X_TLS_PROTOCOL_MIN:
  11. #endif
  12. #ifdef LDAP_OPT_X_TLS_CIPHER_SUITE
  13. case LDAP_OPT_X_TLS_CIPHER_SUITE:
  14. @@ -627,8 +627,8 @@ rb_ldap_conn_get_option (VALUE self, VAL
  15. #ifdef LDAP_OPT_X_TLS_KEYFILE
  16. case LDAP_OPT_X_TLS_KEYFILE:
  17. #endif
  18. -#ifdef LDAP_OPT_X_TLS_PROTOCOL
  19. - case LDAP_OPT_X_TLS_PROTOCOL:
  20. +#ifdef LDAP_OPT_X_TLS_PROTOCOL_MIN
  21. + case LDAP_OPT_X_TLS_PROTOCOL_MIN:
  22. #endif
  23. #ifdef LDAP_OPT_X_TLS_CIPHER_SUITE
  24. case LDAP_OPT_X_TLS_CIPHER_SUITE: