Changeset e3869df


Ignore:
Timestamp:
Oct 17, 2002, 3:10:11 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
0ba59d2
Parents:
d309eb3
Message:
Did some cleanup on zcrypt.c to make -Wall quiet
Added a fileIdent to zcrypt.c
Added a prototype for ZResetAuthentication to zwrite.c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    rd309eb3 re3869df  
    99 *   "crypt-default" for the keyfile name.                                   */
    1010
     11static const char fileIdent[] = "$Id$";
     12
    1113#include <stdio.h>
    1214#include <stdlib.h>
     
    6264int do_encrypt(char *keystring, int zephyr, char *class, char *instance, ZWRITEOPTIONS *zoptions, char* keyfile);
    6365int do_decrypt(char *keystring);
     66
     67int des_ecb_encrypt(char [], char [], des_key_schedule, int);
    6468
    6569#define M_NONE            0
     
    314318    strcat(out, "\n");
    315319  }
    316   owl_function_debugmsg("Have: %s", out);
    317320  return(0);
    318321}
    319322
    320323int zcrypt_encrypt(char *out, char *in, char *class, char *instance) {
    321 
     324  return(0);
    322325}
    323326
     
    347350      if (i != start) *ptr++ = ' ';
    348351      /* Copy argv[i], leaving ptr pointing to the '\0' copied from temp */
    349       while ((*ptr = *temp++)!=NULL) {
     352      while ((*ptr = *temp++)!=0) {
    350353        ptr++;
    351354      }
     
    360363/* Find the class/instance in the .crypt-table */
    361364char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance) {
    362   char *keyfile;
     365  char *keyfile = NULL;
    363366  char varname[MAX_SEARCH][128];
    364367  int length[MAX_SEARCH], i;
     
    528531  int freein = FALSE;
    529532  int use_buffer = FALSE;
    530   int num_blocks, last_block_size;
     533  int num_blocks=0, last_block_size=0;
    531534
    532535  des_string_to_key(keystring, key);
  • zwrite.c

    raecf3e6 re3869df  
    66
    77static const char fileIdent[] = "$Id$";
     8
     9Code_t ZResetAuthentication();
    810
    911int owl_zwrite_create_and_send_from_line(char *cmd, char *msg) {
Note: See TracChangeset for help on using the changeset viewer.