After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682081 - gtlscertificate: certificate-bytes read-only, revert private-key-bytes
gtlscertificate: certificate-bytes read-only, revert private-key-bytes
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-08-17 09:58 UTC by Stef Walter
Modified: 2012-08-21 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtlscertificate: certificate-bytes read-only, revert private-key-bytes (10.51 KB, patch)
2012-08-17 09:58 UTC, Stef Walter
none Details | Review
gtlscertificate: certificate-bytes read-only, revert private-key-bytes (6.70 KB, patch)
2012-08-17 10:56 UTC, Stef Walter
none Details | Review
Revert "gtlscertificate: Add certificate-bytes and private-key-bytes props" (8.06 KB, patch)
2012-08-21 11:33 UTC, Stef Walter
committed Details | Review
Revert "gnutls: Implement certificate-bytes and private-key-bytes properties" (23.56 KB, patch)
2012-08-21 11:49 UTC, Stef Walter
committed Details | Review

Description Stef Walter 2012-08-17 09:58:08 UTC
 * In order to add contstruct properties to an abstract base
   calls, and retain ABI stability, the base class must add a
   default implementation of those properties.
 * We cannot add a default implementation of certificate-bytes
   or private-key-bytes since certificate and private-key properties
   are writable on construct-only.
 * So change certificate-bytes to be read-only
 * Revert private-key-bytes, since it is not readable.
 * Add test to make sure base class default implementation works.
Comment 1 Stef Walter 2012-08-17 09:58:11 UTC
Created attachment 221569 [details] [review]
gtlscertificate: certificate-bytes read-only, revert private-key-bytes
Comment 2 Stef Walter 2012-08-17 10:56:33 UTC
Created attachment 221579 [details] [review]
gtlscertificate: certificate-bytes read-only, revert private-key-bytes

 * This mirrors a commit in glib, which reverts some changes because
   they broke ABI.
Comment 3 Dan Winship 2012-08-17 14:25:33 UTC
hm... it's weird to have a read-only certificate-bytes property... maybe we should just remove the whole thing? (You could still have a gnutls-specific g_tls_certificate_gnutls_get_bytes() in the gnutls backend for internal use.)
Comment 4 Stef Walter 2012-08-21 11:33:01 UTC
Created attachment 221983 [details] [review]
Revert "gtlscertificate: Add certificate-bytes and private-key-bytes props"

* In order to add contstruct properties to an abstract base
   calls, and retain ABI stability, the base class must add a
   default implementation of those properties.
 * We cannot add a default implementation of certificate-bytes
   or private-key-bytes since certificate and private-key properties
   are writable on construct-only.

This reverts commit 541c985869fe9f2c0a858c0a91b4eb60f99d19f0.
Comment 5 Stef Walter 2012-08-21 11:49:23 UTC
Created attachment 221984 [details] [review]
Revert "gnutls: Implement certificate-bytes and private-key-bytes properties"

* The corresponding commit was reverted in glib due to ABI issues
 * Add g_tls_certificate_gnutls_get_bytes() for glib-networking use.
 * Fix up the tests and other code so it works in the presence of this
   reverted commit.

This reverts commit c30a4bbaf5e6f937f9e15d4c5fba7ab40a52b6d3.
Comment 6 Stef Walter 2012-08-21 12:29:26 UTC
Comment on attachment 221983 [details] [review]
Revert "gtlscertificate: Add certificate-bytes and private-key-bytes props"

Attachment 221983 [details] pushed as 7518f7a - Revert "gtlscertificate: Add certificate-bytes and private-key-bytes props"
Comment 7 Stef Walter 2012-08-21 12:35:39 UTC
Attachment 221984 [details] pushed as 6e00a33 - Revert "gnutls: Implement certificate-bytes and private-key-bytes properties"