Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/security/MessageDigest.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
     1
    12/* MessageDigest.java --- The message digest interface.
    2    Copyright (C) 1999 Free Software Foundation, Inc.
     3   Copyright (C) 1999 Free Software Foundation, Inc.
    34
    45This file is part of GNU Classpath.
     
    4142{
    4243  private String algorithm;
    43   private Provider provider;
     44  Provider provider;
    4445  private byte[] lastDigest;
    4546
     
    6465     @return a MessageDigest representing the desired algorithm
    6566
    66      @exception NoSuchAlgorithmException if the algorithm is not implemented by providers
     67     @exception NoSuchAlgorithmException if the algorithm is not implemented by
     68                                         providers
    6769   */
    6870  public static MessageDigest getInstance(String algorithm)
     
    7072  {
    7173    Provider[] p = Security.getProviders();
    72     String name = "MessageDigest." + algorithm;
    73 
    7474    for (int i = 0; i < p.length; i++)
    7575      {
    76         String classname = p[i].getProperty(name);
    77         if (classname != null)
    78           return getInstance(classname, algorithm, p[i]);
     76        try
     77          {
     78            return getInstance(algorithm, p[i]);
     79          }
     80        catch (NoSuchAlgorithmException ignored) {}
    7981      }
    8082