gssapi 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/gssapi/lib_gssapi.rb +9 -6
- metadata +4 -18
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/gssapi/lib_gssapi.rb
CHANGED
@@ -105,7 +105,7 @@ module GSSAPI
|
|
105
105
|
buff = LibGSSAPI.malloc(rbuff.size)
|
106
106
|
LibGSSAPI.memcpy(buff,rbuff,rbuff.size)
|
107
107
|
self[:length] = val.to_s.length
|
108
|
-
self[:value] =
|
108
|
+
self[:value] = buff
|
109
109
|
else
|
110
110
|
raise StandardError, "Can't handle type #{val.class.name}"
|
111
111
|
end
|
@@ -124,9 +124,12 @@ module GSSAPI
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def self.release(ptr)
|
127
|
-
puts "Releasing MGssBufferDesc at #{ptr.address}" if $DEBUG
|
128
|
-
min_stat = FFI::MemoryPointer.new :uint32
|
129
|
-
|
127
|
+
puts "FIXME: Not Releasing MGssBufferDesc at #{ptr.address.to_s(16)}" if $DEBUG
|
128
|
+
#min_stat = FFI::MemoryPointer.new :uint32
|
129
|
+
# FIXME: This causes Segfaults and I'm not sure where they're coming from at this time.
|
130
|
+
# this is a horrible fix, but most instances should be fairly short lived so it's all
|
131
|
+
# I got right now.
|
132
|
+
#maj_stat = LibGSSAPI.gss_release_buffer(min_stat, ptr)
|
130
133
|
end
|
131
134
|
end
|
132
135
|
|
@@ -167,7 +170,7 @@ module GSSAPI
|
|
167
170
|
puts "NULL POINTER: Not freeing" if $DEBUG
|
168
171
|
return
|
169
172
|
else
|
170
|
-
puts "Releasing #{self.name}" if $DEBUG
|
173
|
+
puts "Releasing #{self.name} at #{ptr.address.to_s(16)}" if $DEBUG
|
171
174
|
self.release_ptr(ptr)
|
172
175
|
end
|
173
176
|
end
|
@@ -176,7 +179,7 @@ module GSSAPI
|
|
176
179
|
# A wrapper around gss_name_t so that it garbage collects
|
177
180
|
class GssNameT < GssPointer
|
178
181
|
def self.release_ptr(name_ptr)
|
179
|
-
puts "Releasing gss_name_t at #{name_ptr.address}" if $DEBUG
|
182
|
+
puts "Releasing gss_name_t at #{name_ptr.address.to_s(16)}" if $DEBUG
|
180
183
|
min_stat = FFI::MemoryPointer.new :uint32
|
181
184
|
maj_stat = LibGSSAPI.gss_release_name(min_stat, name_ptr)
|
182
185
|
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gssapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
version: 0.1.3
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.4
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Dan Wanek
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
13
|
+
date: 2011-03-02 00:00:00 -06:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
@@ -25,10 +21,6 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ">="
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 1
|
32
24
|
version: 1.0.1
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -71,23 +63,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
63
|
requirements:
|
72
64
|
- - ">="
|
73
65
|
- !ruby/object:Gem::Version
|
74
|
-
segments:
|
75
|
-
- 1
|
76
|
-
- 9
|
77
|
-
- 1
|
78
66
|
version: 1.9.1
|
79
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
68
|
none: false
|
81
69
|
requirements:
|
82
70
|
- - ">="
|
83
71
|
- !ruby/object:Gem::Version
|
84
|
-
segments:
|
85
|
-
- 0
|
86
72
|
version: "0"
|
87
73
|
requirements: []
|
88
74
|
|
89
75
|
rubyforge_project:
|
90
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 1.5.0
|
91
77
|
signing_key:
|
92
78
|
specification_version: 3
|
93
79
|
summary: A FFI wrapper around the system GSSAPI library.
|