Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

md5.h

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    • Niels Möller's avatar
      ef3668b2
      *** empty log message *** · ef3668b2
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.10
      Rev: src/nettle/aes.h:1.4
      Rev: src/nettle/arcfour.h:1.3
      Rev: src/nettle/blowfish.h:1.7
      Rev: src/nettle/cast128.h:1.3
      Rev: src/nettle/des.h:1.4
      Rev: src/nettle/md5.h:1.3
      Rev: src/nettle/memxor.h:1.2
      Rev: src/nettle/serpent.h:1.5
      Rev: src/nettle/sha1.h:1.3
      Rev: src/nettle/twofish.h:1.4
      ef3668b2
      History
      *** empty log message ***
      Niels Möller authored
      Rev: src/nettle/ChangeLog:1.10
      Rev: src/nettle/aes.h:1.4
      Rev: src/nettle/arcfour.h:1.3
      Rev: src/nettle/blowfish.h:1.7
      Rev: src/nettle/cast128.h:1.3
      Rev: src/nettle/des.h:1.4
      Rev: src/nettle/md5.h:1.3
      Rev: src/nettle/memxor.h:1.2
      Rev: src/nettle/serpent.h:1.5
      Rev: src/nettle/sha1.h:1.3
      Rev: src/nettle/twofish.h:1.4
    main.c 4.01 KiB
    /*\
    ||| This file a part of uLPC, and is copyright by Fredrik Hubinette
    ||| uLPC is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    #include <stdio.h>
    #include <stdlib.h>
    #include "global.h"
    #include "types.h"
    
    #ifdef HAVE_SYS_TIME_H
    #include <sys/time.h>
    #endif
    
    #include "backend.h"
    #include "module.h"
    #include "object.h"
    #include "lex.h"
    #include "lpc_types.h"
    #include "builtin_efuns.h"
    #include "array.h"
    #include "stralloc.h"
    #include "interpret.h"
    #include "error.h"
    #include "macros.h"
    #include "callback.h"
    #include "lpc_signal.h"
    
    #ifdef HAVE_LOCALE_H
    #include <locale.h>
    #endif
    #ifdef HAVE_SYS_RESOURCE_H
    #include <sys/resource.h>
    #endif
    
    char *master_file;
    
    int d_flag=0;
    int c_flag=0;
    int t_flag=0;
    int a_flag=0;
    int l_flag=0;
    
    static struct callback_list *post_master_callbacks =0;
    
    struct callback_list *add_post_master_callback(struct array *a)
    {
      return add_to_callback_list(&post_master_callbacks, a);
    }
    
    
    void main(int argc, char **argv, char **env)
    {
      JMP_BUF back;
      int e, num;
      char *p;
      struct array *a;
    
    #ifdef HAVE_SETLOCALE
      setlocale(LC_ALL, "");
    #endif  
      init_backend();
      master_file = 0;
    #ifdef HAVE_GETENV
      master_file = getenv("LPC_MASTER");
    #endif
      if(!master_file) master_file = DEFAULT_MASTER;
    
      for(e=1; e<argc; e++)
      {