apache-php4.patch.modauthkerb 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Index: Makefile.libdir
  2. --- /dev/null 2007-01-20 15:04:24 +0100
  3. +++ Makefile.libdir 2007-01-20 15:03:31 +0100
  4. @@ -0,0 +1 @@
  5. +mod_auth_kerb
  6. Index: Makefile.tmpl
  7. --- /dev/null 2007-01-20 15:04:24 +0100
  8. +++ Makefile.tmpl 2007-01-20 15:03:31 +0100
  9. @@ -0,0 +1,46 @@
  10. +
  11. +LIB=libmod_auth_kerb.$(LIBEXT)
  12. +
  13. +OBJS=src/mod_auth_kerb.o \
  14. + spnegokrb5/asn1_MechType.o \
  15. + spnegokrb5/asn1_MechTypeList.o \
  16. + spnegokrb5/asn1_ContextFlags.o \
  17. + spnegokrb5/asn1_NegTokenInit.o \
  18. + spnegokrb5/asn1_NegTokenTarg.o \
  19. + spnegokrb5/der_get.o \
  20. + spnegokrb5/der_put.o \
  21. + spnegokrb5/der_free.o \
  22. + spnegokrb5/der_length.o \
  23. + spnegokrb5/der_copy.o \
  24. + spnegokrb5/timegm.o \
  25. + spnegokrb5/init_sec_context.o \
  26. + spnegokrb5/accept_sec_context.o \
  27. + spnegokrb5/encapsulate.o \
  28. + spnegokrb5/decapsulate.o \
  29. + spnegokrb5/external.o
  30. +
  31. +all: lib
  32. +
  33. +lib: $(LIB)
  34. +
  35. +libmod_auth_kerb.$(LIBEXT): $(OBJS)
  36. + rm -f $@
  37. + ar cr $@ $(OBJS)
  38. + $(RANLIB) $@
  39. +
  40. +.SUFFIXES: .o
  41. +
  42. +.c.o:
  43. + $(CC) -c -I. -Ispnegokrb5 $(INCLUDES) $(CFLAGS) -o $@ $<
  44. +
  45. +clean:
  46. + rm -f $(OBJS) $(LIB)
  47. +
  48. +distclean: clean
  49. + -rm -f Makefile
  50. +
  51. +#Dependencies
  52. +
  53. +$(OBJS): Makefile
  54. +
  55. +# DO NOT REMOVE
  56. Index: libmod_auth_kerb.module
  57. --- /dev/null 2007-01-20 15:04:24 +0100
  58. +++ libmod_auth_kerb.module 2007-01-20 15:03:31 +0100
  59. @@ -0,0 +1,8 @@
  60. +Name: auth_kerb_module
  61. +ConfigStart
  62. + echo "++ FUCK"
  63. + KERBEROS_CFLAGS="`krb5-config --cflags gssapi`"
  64. + KERBEROS_LIBS="`krb5-config --libs gssapi`"
  65. + CFLAGS="$KERBEROS_CFLAGS $CFLAGS"
  66. + LIBS="$KERBEROS_LIBS $LIBS"
  67. +ConfigEnd
  68. Index: src/mod_auth_kerb.c
  69. --- src/mod_auth_kerb.c.orig 2006-11-22 11:32:58 +0100
  70. +++ src/mod_auth_kerb.c 2007-01-20 15:07:51 +0100
  71. @@ -745,7 +745,7 @@
  72. return ret;
  73. }
  74. -static int
  75. +static void
  76. krb5_cache_cleanup(void *data)
  77. {
  78. krb5_context context;
  79. @@ -756,7 +756,7 @@
  80. problem = krb5_init_context(&context);
  81. if (problem) {
  82. /* ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "krb5_init_context() failed"); */
  83. - return HTTP_INTERNAL_SERVER_ERROR;
  84. + return;
  85. }
  86. problem = krb5_cc_resolve(context, cache_name, &cache);
  87. @@ -764,12 +764,12 @@
  88. /* log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
  89. "krb5_cc_resolve() failed (%s: %s)",
  90. cache_name, krb5_get_err_text(context, problem)); */
  91. - return HTTP_INTERNAL_SERVER_ERROR;
  92. + return;
  93. }
  94. krb5_cc_destroy(context, cache);
  95. krb5_free_context(context);
  96. - return OK;
  97. + return;
  98. }
  99. static int