-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pam/gdm/extension: Add PAM gdm JSON extension protocol implementation #125
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #125 +/- ##
==========================================
+ Coverage 88.14% 88.62% +0.47%
==========================================
Files 32 34 +2
Lines 2430 2532 +102
==========================================
+ Hits 2142 2244 +102
Misses 221 221
Partials 67 67 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks here and there, but it's looking very good. Well done!
f1ccd43
to
b14c161
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
b4088b3
to
9f805d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me now. Well done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work here! Had a couple minor test related comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Add go bindings to encode and decode PAM binary messages using the GDM Custom JSON protocol. The protocol will be available as part of GNOME 46, but for being early consumers we include in the repo the headers where the messages are defined, until that's possible to switch on the repo version. See: https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/227
…nary protocol Add an utility function to perform GDM-PAM binary conversations using the custom JSON protocol. This function does not much per se, but it allows us to do some proper testing via the dummy module transaction and so we can test how this data is passed back and forth the two sides, and stress the C <-> go structures conversions.
5b16b2a
to
ae93edc
Compare
Add go bindings to encode and decode PAM binary messages using the GDM
Custom JSON protocol.
The protocol will be available as part of GNOME 46, but for being early
consumers we include in the repo the headers where the messages are
defined, until that's possible to switch on the repo version.
See: https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/227