From bffe128260c4c2f81096901947b0cf387c5395de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Mon, 2 Jun 2008 14:25:26 +0000 Subject: [PATCH] Comment out base64 encoding of binary values - BROKEN, abort()'s - workaround to avoid broken linking --- org.glite.jp.common/src/attr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/org.glite.jp.common/src/attr.c b/org.glite.jp.common/src/attr.c index 1b7285c..d902ccd 100644 --- a/org.glite.jp.common/src/attr.c +++ b/org.glite.jp.common/src/attr.c @@ -106,7 +106,10 @@ static char * fb_to_db_full(void *ctx,const glite_jp_attrval_t *attr) db[len++] = ':'; if (attr->binary) { +/* FIXME: binary unsupported, base64_* not available after restructuring vsize = base64_encode(attr->value,attr->size,db+len,vsize-1); +*/ + abort(); if (vsize < 0) { free(db); return NULL; } db[len+vsize] = 0; } @@ -156,7 +159,10 @@ static int fb_from_db(void *ctx,const char *str,glite_jp_attrval_t *attr) if (cp[p++] != ':') return EINVAL; if (attr->binary) { +/* FIXME: binary unsupported, base64_* not available after restructuring attr->size = base64_decode(str+p,attr->value,strlen(str)); +*/ + abort(); if (attr->size < 0) return EINVAL; } else strcpy(attr->value,str+p); -- 1.8.2.3