Ignore:
Timestamp:
Aug 7, 2014, 9:32:43 PM (11 years ago)
Author:
dmik
Message:

openssl: Merge version 1.0.1i from vendor to trunk.

Location:
openssl/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • openssl/trunk

  • TabularUnified openssl/trunk/apps/dgst.c

    r808 r811  
    128128        char *hmac_key=NULL;
    129129        char *mac_name=NULL;
     130        int non_fips_allow = 0;
    130131        STACK_OF(OPENSSL_STRING) *sigopts = NULL, *macopts = NULL;
    131132
     
    216217                else if (strcmp(*argv,"-d") == 0)
    217218                        debug=1;
     219                else if (!strcmp(*argv,"-fips-fingerprint"))
     220                        hmac_key = "etaonrishdlcupfm";
     221                else if (strcmp(*argv,"-non-fips-allow") == 0)
     222                        non_fips_allow=1;
    218223                else if (!strcmp(*argv,"-hmac"))
    219224                        {
     
    396401                }
    397402
     403        if (non_fips_allow)
     404                {
     405                EVP_MD_CTX *md_ctx;
     406                BIO_get_md_ctx(bmd,&md_ctx);
     407                EVP_MD_CTX_set_flags(md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
     408                }
     409
    398410        if (hmac_key)
    399411                {
Note: See TracChangeset for help on using the changeset viewer.