File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ protected Stream Out
20
20
21
21
public abstract void AddObject ( Asn1Encodable obj ) ;
22
22
23
- public abstract Stream GetRawOutputStream ( ) ;
23
+ public abstract void AddObject ( Asn1Object obj ) ;
24
+
25
+ public abstract Stream GetRawOutputStream ( ) ;
24
26
25
27
public abstract void Close ( ) ;
26
28
}
Original file line number Diff line number Diff line change 4
4
5
5
namespace Org . BouncyCastle . Asn1
6
6
{
7
- public class BerGenerator
7
+ public abstract class BerGenerator
8
8
: Asn1Generator
9
9
{
10
10
private bool _tagged = false ;
@@ -17,7 +17,7 @@ protected BerGenerator(
17
17
{
18
18
}
19
19
20
- public BerGenerator (
20
+ protected BerGenerator (
21
21
Stream outStream ,
22
22
int tagNo ,
23
23
bool isExplicit )
@@ -34,7 +34,13 @@ public override void AddObject(
34
34
new BerOutputStream ( Out ) . WriteObject ( obj ) ;
35
35
}
36
36
37
- public override Stream GetRawOutputStream ( )
37
+ public override void AddObject (
38
+ Asn1Object obj )
39
+ {
40
+ new BerOutputStream ( Out ) . WriteObject ( obj ) ;
41
+ }
42
+
43
+ public override Stream GetRawOutputStream ( )
38
44
{
39
45
return Out ;
40
46
}
Original file line number Diff line number Diff line change @@ -27,7 +27,13 @@ public override void AddObject(
27
27
new DerOutputStream ( _bOut ) . WriteObject ( obj ) ;
28
28
}
29
29
30
- public override Stream GetRawOutputStream ( )
30
+ public override void AddObject (
31
+ Asn1Object obj )
32
+ {
33
+ new DerOutputStream ( _bOut ) . WriteObject ( obj ) ;
34
+ }
35
+
36
+ public override Stream GetRawOutputStream ( )
31
37
{
32
38
return _bOut ;
33
39
}
Original file line number Diff line number Diff line change @@ -27,7 +27,13 @@ public override void AddObject(
27
27
new DerOutputStream ( _bOut ) . WriteObject ( obj ) ;
28
28
}
29
29
30
- public override Stream GetRawOutputStream ( )
30
+ public override void AddObject (
31
+ Asn1Object obj )
32
+ {
33
+ new DerOutputStream ( _bOut ) . WriteObject ( obj ) ;
34
+ }
35
+
36
+ public override Stream GetRawOutputStream ( )
31
37
{
32
38
return _bOut ;
33
39
}
You can’t perform that action at this time.
0 commit comments