This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new 71dcc52 Add new methods from OpenSSL module
71dcc52 is described below
commit 71dcc52a8b815edc9a511113e417634ce2473a32
Author: remm <[email protected]>
AuthorDate: Fri Nov 5 11:29:30 2021 +0100
Add new methods from OpenSSL module
---
java/org/apache/tomcat/util/buf/Asn1Parser.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/java/org/apache/tomcat/util/buf/Asn1Parser.java
b/java/org/apache/tomcat/util/buf/Asn1Parser.java
index e8e5727..436e5ea 100644
--- a/java/org/apache/tomcat/util/buf/Asn1Parser.java
+++ b/java/org/apache/tomcat/util/buf/Asn1Parser.java
@@ -41,6 +41,16 @@ public class Asn1Parser {
}
+ public boolean eof() {
+ return pos == source.length;
+ }
+
+
+ public int peekTag() {
+ return source[pos] & 0xFF;
+ }
+
+
public void parseTag(int tag) {
int value = next();
if (value != tag) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]