static int verify_bucket_name(const char *name)
{
    if (name==NULL)
        return 1;

    int len = strlen(name);
    if (len<3 || len>255) // "Bucket names must be at least 3... Bucket names can be as long as 255 characters"
        return 1;

    for (int i=0; i<len; i++) {
        char c = tolower(name[i]);
        if (c >= 'a' && c <= 'z') // "any combination of uppercase letters, lowercase letters,..."
            continue;
        if (c >= '0' && c <= '9') // "numbers,..."
            continue;
        if (c == '.' || // "periods,..."
            c == '-' || // "dashes,..."
            c == '_') // "and underscores"
            continue;

        // otherwise there is an invalid character
        return 1;
    }
    return 0;
}
static int verify_bucket_name(const char *name)
{
    if (name==NULL)
        return 1;

    int len = strlen(name);
    if (len<3 || len>255)  
        return 1;

    for (int i=0; i<len; i++) {
        char c = tolower(name[i]);
        if (c >= 'a' && c <= 'z')  
            continue;
        if (c >= '0' && c <= '9')  
            continue;
        if (c == '.' ||  
            c == '-' ||  
            c == '_')  
            continue;

         
        return 1;
    }
    return 0;
}