/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to dracut-module/password-agent.c

  • Committer: teddy at recompile
  • Date: 2020-11-29 22:26:30 UTC
  • Revision ID: teddy@recompile.se-20201129222630-majen1v3cgwzre1f
Fix spelling in comments

* dracut-module/password-agent.c (test_connect_question_socket_usable,
  test_send_password_to_socket_EMSGSIZE):  Fix spelling from
  "procotol" to "protocol" in comment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Mandos password agent - Simple password agent to run Mandos client
4
4
 *
5
 
 * Copyright © 2019 Teddy Hogeborn
6
 
 * Copyright © 2019 Björn Påhlsson
 
5
 * Copyright © 2019-2020 Teddy Hogeborn
 
6
 * Copyright © 2019-2020 Björn Påhlsson
7
7
 * 
8
8
 * This file is part of Mandos.
9
9
 * 
1193
1193
  bool *const password_is_read = task.password_is_read;
1194
1194
 
1195
1195
  /* We use the GLib "Key-value file parser" functions to parse the
1196
 
     question file.  See <https://www.freedesktop.org/wiki/Software
1197
 
     /systemd/PasswordAgents/> for specification of contents */
 
1196
     question file.  See <https://systemd.io/PASSWORD_AGENTS/> for
 
1197
     specification of contents */
1198
1198
  __attribute__((nonnull))
1199
1199
    void cleanup_g_key_file(GKeyFile **key_file){
1200
1200
    if(*key_file != NULL){
1490
1490
         not. You may but don't have to include a final NUL byte in
1491
1491
         your message.
1492
1492
 
1493
 
         — <https://www.freedesktop.org/wiki/Software/systemd/
1494
 
         PasswordAgents/> (Wed 08 Oct 2014 02:14:28 AM UTC)
 
1493
         — <https://systemd.io/PASSWORD_AGENTS/> (Tue, 15 Sep 2020
 
1494
         14:24:20 GMT)
1495
1495
      */
1496
1496
      send_buffer[0] = '+';     /* Prefix with "+" */
1497
1497
      /* Always add an extra NUL */
5807
5807
  char write_data[PIPE_BUF];
5808
5808
  {
5809
5809
    /* Construct test password buffer */
5810
 
    /* Start with + since that is what the real procotol uses */
 
5810
    /* Start with + since that is what the real protocol uses */
5811
5811
    write_data[0] = '+';
5812
5812
    /* Set a special character at string end just to mark the end */
5813
5813
    write_data[sizeof(write_data)-2] = 'y';
5980
5980
    g_assert_true(errno == EPERM or errno == ENOMEM);
5981
5981
  }
5982
5982
  /* Construct test password buffer */
5983
 
  /* Start with + since that is what the real procotol uses */
 
5983
  /* Start with + since that is what the real protocol uses */
5984
5984
  password.data[0] = '+';
5985
5985
  /* Set a special character at string end just to mark the end */
5986
5986
  password.data[oversized-3] = 'y';