nsapi.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. /*
  7. * Aruna Victor
  8. */
  9. #include <windows.h>
  10. #include <stdio.h>
  11. #include <base/file.h>
  12. #include <base/eventlog.h>
  13. #include <base/util.h>
  14. #include <base/shexp.h>
  15. #include <base/systhr.h>
  16. #include <base/crit.h>
  17. #include <base/systhr.h>
  18. #include <ssl.h>
  19. typedef void * (SafFunction)();
  20. SafFunction **SafTable;
  21. __declspec(dllexport) int InitSafTable(SafFunction *Table);
  22. /* Functions from file.h */
  23. #define SYSTEM_FOPENRO 22
  24. #define SYSTEM_FOPENWA 23
  25. #define SYSTEM_FOPENRW 24
  26. #define SYSTEM_FCLOSE 25
  27. #define SYSTEM_NOCOREDUMPS 26
  28. #define SYSTEM_FWRITE 27
  29. #define SYSTEM_FWRITE_ATOMIC 28
  30. #define SYSTEM_WINERR 29
  31. #define SYSTEM_WINSOCKERR 30
  32. #define FILE_NOTFOUND 31
  33. #define SYSTEM_STAT 32
  34. #define FILE_UNIX2LOCAL 34
  35. #define DIR_OPEN 35
  36. #define DIR_READ 36
  37. #define DIR_CLOSE 37
  38. /* Functions from ereport.h */
  39. #define EREPORT 80
  40. /* Functions from minissl.h */
  41. #define SSL_CLOSE 90
  42. #define SSL_SOCKET 91
  43. #define SSL_GET_SOCKOPT 92
  44. #define SSL_SET_SOCKOPT 93
  45. #define SSL_BIND 94
  46. #define SSL_LISTEN 95
  47. #define SSL_ACCEPT 96
  48. #define SSL_READ 97
  49. #define SSL_WRITE 98
  50. #define SSL_GETPEERNAME 99
  51. /* Functions from systhr.h */
  52. #define SYSTHREAD_START 133
  53. #define SYSTHREAD_ATTACH 134
  54. #define SYSTHREAD_TERMINATE 135
  55. #define SYSTHREAD_SLEEP 136
  56. #define SYSTHREAD_INIT 137
  57. #define SYSTHREAD_NEWKEY 138
  58. #define SYSTHREAD_GETDATA 139
  59. #define SYSTHREAD_SETDATA 140
  60. #define LOG_ERROR_EVENT 149
  61. /* Functions from shexp.h */
  62. #define SHEXP_VALID 160
  63. #define SHEXP_MATCH 161
  64. #define SHEXP_CMP 162
  65. #define SHEXP_CASECMP 163
  66. /* Functions from systems.h */
  67. #define UTIL_STRCASECMP 170
  68. #define UTIL_STRNCASECMP 171
  69. /* Functions from util.h */
  70. #define UTIL_HOSTNAME 187
  71. #define UTIL_ITOA 198
  72. #define UTIL_VSPRINTF 199
  73. #define UTIL_SPRINTF 200
  74. #define UTIL_VSNPRINTF 201
  75. #define UTIL_SNPRINTF 202
  76. /* Functions from conf.h */
  77. #define CONF_INIT 207
  78. /* robm Functions added in 2.0 */
  79. #define SYSTEM_FOPENWT 261
  80. #define SYSTEM_MALLOC 262
  81. #define SYSTEM_FREE 263
  82. #define SYSTEM_REALLOC 264
  83. #define SYSTEM_STRDUP 265
  84. #define CRIT_INIT 267
  85. #define CRIT_ENTER 268
  86. #define CRIT_EXIT 269
  87. #define CRIT_TERMINATE 270
  88. #define SYSTHREAD_CURRENT 271
  89. #define ACL_LISTCONCAT 312
  90. #define GETCLIENTLANG 313