geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

142 lines
8.0 KiB

  1. * Copyright (c) 2015, Patrick Monnerat, D+H <patrick.monnerat@dh.com>
  2. * All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms,
  5. * with or without modification, are permitted provided
  6. * that the following conditions are met:
  7. *
  8. * Redistributions of source code must retain the above
  9. * copyright notice, this list of conditions and the
  10. * following disclaimer.
  11. *
  12. * Redistributions in binary form must reproduce the above
  13. * copyright notice, this list of conditions and the following
  14. * disclaimer in the documentation and/or other materials
  15. * provided with the distribution.
  16. *
  17. * Neither the name of the copyright holder nor the names
  18. * of any other contributors may be used to endorse or
  19. * promote products derived from this software without
  20. * specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
  23. * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
  24. * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  25. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  27. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  28. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  29. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  30. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  31. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  32. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  33. * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  34. * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  35. * OF SUCH DAMAGE.
  36. * Note: This include file is only needed for using the
  37. * publickey SUBSYSTEM which is not the same as publickey
  38. * authentication. For authentication you only need libssh2.h
  39. *
  40. * For more information on the publickey subsystem,
  41. * refer to IETF draft: secsh-publickey
  42. /if not defined(LIBSSH2_PUBLICKEY_H_)
  43. /define LIBSSH2_PUBLICKEY_H_
  44. /include "libssh2rpg/libssh2"
  45. d libssh2_publickey_attribute...
  46. d ds based(######typedef######)
  47. d align qualified
  48. d name * const char *
  49. d name_len like(libssh2_Culong)
  50. d value * const char *
  51. d value_len like(libssh2_Culong)
  52. d mandatory like(libssh2_Cchar)
  53. d libssh2_publickey_list...
  54. d ds based(######typedef######)
  55. d align qualified
  56. d name * const char *
  57. d name_len like(libssh2_Culong)
  58. d blob * const uns char *
  59. d blob_len like(libssh2_Culong)
  60. d num_attrs like(libssh2_Culong)
  61. d attrs * libssh2_publickey...
  62. d attribute *
  63. * Publickey Subsystem.
  64. d libssh2_publickey_init...
  65. d pr * extproc('libssh2_publickey_init') LIBSSH2_PUBLICKEY *
  66. d session * value LIBSSH2_SESSION *
  67. d libssh2_publickey_add_ex...
  68. d pr extproc('libssh2_publickey_add_ex')
  69. d like(libssh2_Cint)
  70. d pkey * value LIBSSH2_PUBLICKEY *
  71. d name * value options(*string) const uns char *
  72. d name_len value like(libssh2_Culong)
  73. d blob * value options(*string) const uns char *
  74. d blob_len value like(libssh2_Culong)
  75. d overwrite value like(libssh2_Cchar)
  76. d num_attrs value like(libssh2_Culong)
  77. d attrs likeds(libssh2_publickey_attribute)
  78. d dim(1000)
  79. * C macro implementation.
  80. d libssh2_publickey_add...
  81. d pr extproc('libssh2_publickey_add')
  82. d like(libssh2_Cint)
  83. d pkey * value LIBSSH2_PUBLICKEY *
  84. d name * value options(*string) const unsigned char
  85. d *
  86. d blob * value options(*string) const unsigned char
  87. d *
  88. d blob_len value like(libssh2_Culong)
  89. d overwrite value like(libssh2_Cchar)
  90. d num_attrs value like(libssh2_Culong)
  91. d attrs likeds(libssh2_publickey_attribute)
  92. d dim(1000)
  93. d libssh2_publickey_remove_ex...
  94. d pr extproc(
  95. d 'libssh2_publickey_remove_ex')
  96. d like(libssh2_Cint)
  97. d pkey * value LIBSSH2_PUBLICKEY *
  98. d name * value options(*string) const uns char *
  99. d name_len value like(libssh2_Culong)
  100. d blob * value options(*string) const uns char *
  101. d blob_len value like(libssh2_Culong)
  102. * C macro implementation.
  103. d libssh2_publickey_remove...
  104. d pr extproc('libssh2_publickey_remove')
  105. d like(libssh2_Cint)
  106. d pkey * value LIBSSH2_PUBLICKEY *
  107. d name * value options(*string) const uns char *
  108. d blob * value options(*string) const uns char *
  109. d blob_len value like(libssh2_Culong)
  110. d libssh2_publickey_list_fetch...
  111. d pr extproc(
  112. d 'libssh2_publickey_list_fetch')
  113. d like(libssh2_Cint)
  114. d pkey * value LIBSSH2_PUBLICKEY *
  115. d num_keys * value unsigned long *
  116. d pkey_list * libssh2_publickey...
  117. d _list *(*)
  118. d libssh2_publickey_list_free...
  119. d pr extproc(
  120. d 'libssh2_publickey_list_free')
  121. d pkey * value LIBSSH2_PUBLICKEY *
  122. d pkey_list likeds(libssh2_publickey_list)
  123. d libssh2_publickey_shutdown...
  124. d pr extproc('libssh2_publickey_shutdown')
  125. d like(libssh2_Cint)
  126. d pkey * value LIBSSH2_PUBLICKEY *
  127. /endif LIBSSH2_PUBLICKEY_H_