File tree Expand file tree Collapse file tree 6 files changed +7
-0
lines changed
Expand file tree Collapse file tree 6 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def html
4848 html_p = OpenSCAP . ds_rds_session_get_html_report @session
4949 OpenSCAP . raise! if OpenSCAP . error?
5050 return nil if html_p . null?
51+
5152 html = html_p . read_string
5253 OpenSCAP ::LibC . free html_p
5354 html
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Fix
66 def initialize ( raw )
77 raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
88 unless raw . is_a? ( FFI ::Pointer )
9+
910 @raw = raw
1011 end
1112
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Ident
66 def initialize ( raw )
77 raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
88 unless raw . is_a? ( FFI ::Pointer )
9+
910 @raw = raw
1011 end
1112
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class Item
1212 def self . build ( t )
1313 raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with #{ t } " \
1414 unless t . is_a? ( FFI ::Pointer )
15+
1516 # This is Abstract base class that enables you to build its child
1617 case OpenSCAP . xccdf_item_get_type t
1718 when :group
@@ -27,6 +28,7 @@ def initialize(t)
2728 if self . class == OpenSCAP ::Xccdf ::Item
2829 raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } abstract base class."
2930 end
31+
3032 @raw = t
3133 end
3234
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class Reference
66 def initialize ( raw )
77 raise OpenSCAP ::OpenSCAPError , "Cannot initialize #{ self . class . name } with '#{ raw } '" \
88 unless raw . is_a? ( FFI ::Pointer )
9+
910 @raw = raw
1011 end
1112
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module Xccdf
55 class Session
66 def initialize ( input_filename )
77 raise OpenSCAPError , 'No filename specified!' unless input_filename
8+
89 @input_filename = input_filename
910 @s = OpenSCAP . xccdf_session_new ( input_filename )
1011 OpenSCAP . raise! if @s . null?
You can’t perform that action at this time.
0 commit comments