/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 plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2015-10-04 13:44:03 UTC
  • Revision ID: teddy@recompile.se-20151004134403-jn72bwgbw3aocllk
* initramfs-tools-hook: Don't try to chmod symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2288
2288
 
2289
2289
int main(int argc, char *argv[]){
2290
2290
  mandos_context mc = { .server = NULL, .dh_bits = 0,
2291
 
                        .priority = "SECURE256:!CTYPE-X.509:"
2292
 
                        "+CTYPE-OPENPGP:!RSA", .current_server = NULL,
2293
 
                        .interfaces = NULL, .interfaces_size = 0 };
 
2291
                        .priority = "SECURE256:!CTYPE-X.509"
 
2292
                        ":+CTYPE-OPENPGP:!RSA:+SIGN-DSA-SHA256",
 
2293
                        .current_server = NULL, .interfaces = NULL,
 
2294
                        .interfaces_size = 0 };
2294
2295
  AvahiSServiceBrowser *sb = NULL;
2295
2296
  error_t ret_errno;
2296
2297
  int ret;
2548
2549
        }
2549
2550
      }
2550
2551
      
2551
 
      if(strcmp(dh_params_file, PATHDIR "/dhparams.pem" ) == 0){
 
2552
      if(dh_params_file != NULL
 
2553
         and strcmp(dh_params_file, PATHDIR "/dhparams.pem" ) == 0){
2552
2554
        int dhparams_fd = open(dh_params_file, O_RDONLY);
2553
2555
        if(dhparams_fd == -1){
2554
2556
          perror_plus("open");