summaryrefslogtreecommitdiff
path: root/src/libstrongswan/asn1/asn1_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/asn1/asn1_parser.c')
-rw-r--r--src/libstrongswan/asn1/asn1_parser.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/libstrongswan/asn1/asn1_parser.c b/src/libstrongswan/asn1/asn1_parser.c
index fe02690d9..2a7a38a52 100644
--- a/src/libstrongswan/asn1/asn1_parser.c
+++ b/src/libstrongswan/asn1/asn1_parser.c
@@ -78,15 +78,8 @@ struct private_asn1_parser_t {
chunk_t blobs[ASN1_MAX_LEVEL + 2];
};
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.iterate
- */
-static bool iterate(private_asn1_parser_t *this, int *objectID, chunk_t *object)
-=======
METHOD(asn1_parser_t, iterate, bool,
private_asn1_parser_t *this, int *objectID, chunk_t *object)
->>>>>>> upstream/4.5.1
{
chunk_t *blob, *blob1;
u_char *start_ptr;
@@ -239,68 +232,33 @@ end:
return this->success;
}
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.get_level
- */
-static u_int get_level(private_asn1_parser_t *this)
-=======
METHOD(asn1_parser_t, get_level, u_int,
private_asn1_parser_t *this)
->>>>>>> upstream/4.5.1
{
return this->level0 + this->objects[this->line].level;
}
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.set_top_level
- */
-static void set_top_level(private_asn1_parser_t *this, u_int level0)
-=======
METHOD(asn1_parser_t, set_top_level, void,
private_asn1_parser_t *this, u_int level0)
->>>>>>> upstream/4.5.1
{
this->level0 = level0;
}
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.set_flags
- */
-static void set_flags(private_asn1_parser_t *this, bool implicit, bool private)
-=======
METHOD(asn1_parser_t, set_flags, void,
private_asn1_parser_t *this, bool implicit, bool private)
->>>>>>> upstream/4.5.1
{
this->implicit = implicit;
this->private = private;
}
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.success
- */
-static bool success(private_asn1_parser_t *this)
-=======
METHOD(asn1_parser_t, success, bool,
private_asn1_parser_t *this)
->>>>>>> upstream/4.5.1
{
return this->success;
}
-<<<<<<< HEAD
-/**
- * Implementation of asn1_parser_t.destroy
- */
-static void destroy(private_asn1_parser_t *this)
-=======
METHOD(asn1_parser_t, destroy, void,
private_asn1_parser_t *this)
->>>>>>> upstream/4.5.1
{
free(this);
}
@@ -310,22 +268,6 @@ METHOD(asn1_parser_t, destroy, void,
*/
asn1_parser_t* asn1_parser_create(asn1Object_t const *objects, chunk_t blob)
{
-<<<<<<< HEAD
- private_asn1_parser_t *this = malloc_thing(private_asn1_parser_t);
-
- memset(this, '\0', sizeof(private_asn1_parser_t));
- this->objects = objects;
- this->blobs[0] = blob;
- this->line = -1;
- this->success = TRUE;
-
- this->public.iterate = (bool (*)(asn1_parser_t*, int*, chunk_t*))iterate;
- this->public.get_level = (u_int (*)(asn1_parser_t*))get_level;
- this->public.set_top_level = (void (*)(asn1_parser_t*, u_int))set_top_level;
- this->public.set_flags = (void (*)(asn1_parser_t*, bool, bool))set_flags;
- this->public.success = (bool (*)(asn1_parser_t*))success;
- this->public.destroy = (void (*)(asn1_parser_t*))destroy;
-=======
private_asn1_parser_t *this;
INIT(this,
@@ -342,7 +284,6 @@ asn1_parser_t* asn1_parser_create(asn1Object_t const *objects, chunk_t blob)
.line = -1,
.success = TRUE,
);
->>>>>>> upstream/4.5.1
return &this->public;
}