summaryrefslogtreecommitdiff
path: root/gcr/gcr-certificate-request-renderer.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-20 08:28:55 +0200
committerStef Walter <stefw@gnome.org>2012-06-20 08:30:20 +0200
commit2fce6f29272b9e78fb047913aab8531ddec2203e (patch)
treeee38ab7952375200ff8750095db615509efd4b6a /gcr/gcr-certificate-request-renderer.c
parent7201cf3f86a76fc297102386c765194e04263a11 (diff)
downloadgcr-2fce6f29272b9e78fb047913aab8531ddec2203e.tar.gz
Use GBytes instead of our own EggBytes
* Bump glib minimum version to 2.32
Diffstat (limited to 'gcr/gcr-certificate-request-renderer.c')
-rw-r--r--gcr/gcr-certificate-request-renderer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcr/gcr-certificate-request-renderer.c b/gcr/gcr-certificate-request-renderer.c
index 2e1b29d..51e0a4f 100644
--- a/gcr/gcr-certificate-request-renderer.c
+++ b/gcr/gcr-certificate-request-renderer.c
@@ -213,7 +213,7 @@ append_extension_request (GcrRenderer *renderer,
GcrDisplayView *view,
GNode *attribute)
{
- EggBytes *value;
+ GBytes *value;
GNode *node;
GNode *asn;
guint i;
@@ -244,7 +244,7 @@ append_attribute (GcrRenderer *renderer,
GNode *attribute)
{
GQuark oid;
- EggBytes *value;
+ GBytes *value;
const gchar *text;
GNode *node;
gboolean ret = FALSE;
@@ -270,9 +270,9 @@ append_attribute (GcrRenderer *renderer,
break;
value = egg_asn1x_get_element_raw (node);
_gcr_display_view_append_hex (view, renderer, _("Value"),
- egg_bytes_get_data (value),
- egg_bytes_get_size (value));
- egg_bytes_unref (value);
+ g_bytes_get_data (value, NULL),
+ g_bytes_get_size (value));
+ g_bytes_unref (value);
}
}
}
@@ -486,7 +486,7 @@ _gcr_certificate_request_renderer_set_attributes (GcrCertificateRequestRenderer
const GckAttribute *value;
GNode *asn = NULL;
gulong type = 0;
- EggBytes *bytes;
+ GBytes *bytes;
g_return_if_fail (GCR_IS_CERTIFICATE_REQUEST_RENDERER (self));
@@ -498,7 +498,7 @@ _gcr_certificate_request_renderer_set_attributes (GcrCertificateRequestRenderer
return;
}
- bytes = egg_bytes_new_with_free_func (value->value, value->length,
+ bytes = g_bytes_new_with_free_func (value->value, value->length,
gck_attributes_unref, gck_attributes_ref (attrs));
asn = egg_asn1x_create_and_decode (pkix_asn1_tab, "pkcs-10-CertificationRequest", bytes);
@@ -515,7 +515,7 @@ _gcr_certificate_request_renderer_set_attributes (GcrCertificateRequestRenderer
}
}
- egg_bytes_unref (bytes);
+ g_bytes_unref (bytes);
if (type == 0)
return;